mirror of https://github.com/CGAL/cgal
Improve documentation and the example that performs affine transformations
This commit is contained in:
parent
8a446d1778
commit
7485e3887b
|
|
@ -200,12 +200,12 @@ returns `true`, if the transformation is reflecting.
|
||||||
bool is_odd() const;
|
bool is_odd() const;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
returns `true`, if the transformation type is the specialized scaling.
|
returns `true`, if the object was constructed using the tag `CGAL::Scaling`, or as a composition of such objects.
|
||||||
*/
|
*/
|
||||||
bool is_scaling() const;
|
bool is_scaling() const;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
returns `true`, if the transformation type is the specialized translation.
|
returns `true`, if the object was constructed using the tag `CGAL::Translation`, or as a composition of such objects.
|
||||||
*/
|
*/
|
||||||
bool is_translation() const;
|
bool is_translation() const;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -579,4 +579,3 @@ the `Object_handle` can represent a `Vertex_const_handle`, a
|
||||||
|
|
||||||
*/
|
*/
|
||||||
} /* namespace CGAL */
|
} /* namespace CGAL */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,7 @@
|
||||||
#include <CGAL/IO/Nef_polyhedron_iostream_3.h>
|
#include <CGAL/IO/Nef_polyhedron_iostream_3.h>
|
||||||
|
|
||||||
|
|
||||||
//instead of
|
typedef CGAL::Extended_homogeneous<CGAL::Exact_integer> Kernel;
|
||||||
//typedef CGAL::Extended_homogeneous<CGAL::Exact_integer> Kernel;
|
|
||||||
// workaround for VC++
|
|
||||||
struct Kernel : public CGAL::Extended_homogeneous<CGAL::Exact_integer> {};
|
|
||||||
|
|
||||||
typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron;
|
typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron;
|
||||||
typedef Nef_polyhedron::Plane_3 Plane_3;
|
typedef Nef_polyhedron::Plane_3 Plane_3;
|
||||||
typedef Nef_polyhedron::Vector_3 Vector_3;
|
typedef Nef_polyhedron::Vector_3 Vector_3;
|
||||||
|
|
@ -22,10 +18,7 @@ int main() {
|
||||||
0,0,-1,
|
0,0,-1,
|
||||||
0,1,0,
|
0,1,0,
|
||||||
1);
|
1);
|
||||||
Aff_transformation_3 scale(3,0,0,
|
Aff_transformation_3 scale(CGAL::SCALING, 3, 2);
|
||||||
0,3,0,
|
|
||||||
0,0,3,
|
|
||||||
2);
|
|
||||||
|
|
||||||
N.transform(transl);
|
N.transform(transl);
|
||||||
CGAL_assertion(N == Nef_polyhedron(Plane_3(0,1,0,-7)));
|
CGAL_assertion(N == Nef_polyhedron(Plane_3(0,1,0,-7)));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue