Improve documentation and the example that performs affine transformations

This commit is contained in:
Andreas Fabri 2021-04-22 13:43:07 +01:00
parent 8a446d1778
commit 7485e3887b
3 changed files with 4 additions and 12 deletions

View File

@ -200,12 +200,12 @@ returns `true`, if the transformation is reflecting.
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;
/*!
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;

View File

@ -579,4 +579,3 @@ the `Object_handle` can represent a `Vertex_const_handle`, a
*/
} /* namespace CGAL */

View File

@ -4,11 +4,7 @@
#include <CGAL/IO/Nef_polyhedron_iostream_3.h>
//instead of
//typedef CGAL::Extended_homogeneous<CGAL::Exact_integer> Kernel;
// workaround for VC++
struct Kernel : public CGAL::Extended_homogeneous<CGAL::Exact_integer> {};
typedef CGAL::Extended_homogeneous<CGAL::Exact_integer> Kernel;
typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron;
typedef Nef_polyhedron::Plane_3 Plane_3;
typedef Nef_polyhedron::Vector_3 Vector_3;
@ -22,10 +18,7 @@ int main() {
0,0,-1,
0,1,0,
1);
Aff_transformation_3 scale(3,0,0,
0,3,0,
0,0,3,
2);
Aff_transformation_3 scale(CGAL::SCALING, 3, 2);
N.transform(transl);
CGAL_assertion(N == Nef_polyhedron(Plane_3(0,1,0,-7)));