diff --git a/Nef_3/doc/Nef_3/Nef_3.txt b/Nef_3/doc/Nef_3/Nef_3.txt index b1bd50533b8..c4d45087f12 100644 --- a/Nef_3/doc/Nef_3/Nef_3.txt +++ b/Nef_3/doc/Nef_3/Nef_3.txt @@ -425,6 +425,18 @@ the symbolical value, large but finite, for the size of the infimaximal box. \cgalExample{Nef_3/extended_kernel.cpp} +\subsection Nef_3DrawNefPolyhedron Draw a Nef Polyhedron + +A nef polyhedron can be visualised by calling the \link PkgDrawNef3 CGAL::draw() \endlink function as shown in the following example. This function opens a new window showing the given Nef Polyhedron. + +\cgalExample{Nef_3/draw_nef_3.cpp} + +This function requires CGAL_Qt5, and is only available if the flag CGAL_USE_BASIC_VIEWER is defined at compile time. + +\cgalFigureBegin{fig_draw_nef_polyhedron, draw_nef_3.png} +Result of the run of the draw_nef_3 program. A window shows the nef polyhedron and allows to navigate through the 3D scene. +\cgalFigureEnd + \section Nef_3File File I/O \anchor sectionNef_3IO diff --git a/Nef_3/doc/Nef_3/PackageDescription.txt b/Nef_3/doc/Nef_3/PackageDescription.txt index b8a0ab9c5e1..91de0089d8d 100644 --- a/Nef_3/doc/Nef_3/PackageDescription.txt +++ b/Nef_3/doc/Nef_3/PackageDescription.txt @@ -3,6 +3,13 @@ /// \defgroup PkgNef3IOFunctions I/O Functions /// \ingroup PkgNef3Ref +/*! Draw. + \code + #include + \endcode +*/ +/// \defgroup PkgDrawNef3 Draw a Nef Polyhedron +/// \ingroup PkgNef3Ref /*! \addtogroup PkgNef3Ref @@ -64,5 +71,8 @@ a simple OpenGL visualization for debugging and illustrations. - \link PkgNef3IOFunctions `CGAL::operator<<()` \endlink - \link PkgNef3IOFunctions `CGAL::operator>>()` \endlink +\cgalCRPSection{Draw a Nef Polyhedron} +- \link PkgDrawNef3 CGAL::draw() \endlink + */ diff --git a/Nef_3/doc/Nef_3/dependencies b/Nef_3/doc/Nef_3/dependencies index 92b8ee474e4..467cacb769e 100644 --- a/Nef_3/doc/Nef_3/dependencies +++ b/Nef_3/doc/Nef_3/dependencies @@ -11,3 +11,4 @@ Number_types BGL Surface_mesh Polygon_mesh_processing +GraphicsView diff --git a/Nef_3/doc/Nef_3/examples.txt b/Nef_3/doc/Nef_3/examples.txt index 3c394cfd017..4a790f646bc 100644 --- a/Nef_3/doc/Nef_3/examples.txt +++ b/Nef_3/doc/Nef_3/examples.txt @@ -17,4 +17,5 @@ \example Nef_3/topological_operations.cpp \example Nef_3/transformation.cpp \example Nef_3/nef_3_to_surface_mesh.cpp +\example Nef_3/draw_nef_3.cpp */ diff --git a/Nef_3/doc/Nef_3/fig/draw_nef_3.png b/Nef_3/doc/Nef_3/fig/draw_nef_3.png new file mode 100644 index 00000000000..03d51641277 Binary files /dev/null and b/Nef_3/doc/Nef_3/fig/draw_nef_3.png differ diff --git a/Nef_3/package_info/Nef_3/dependencies b/Nef_3/package_info/Nef_3/dependencies index a835f44af42..526860099f7 100644 --- a/Nef_3/package_info/Nef_3/dependencies +++ b/Nef_3/package_info/Nef_3/dependencies @@ -7,6 +7,7 @@ Circulator Distance_2 Distance_3 Filtered_kernel +GraphicsView HalfedgeDS Hash_map Homogeneous_kernel diff --git a/Periodic_2_triangulation_2/doc/Periodic_2_triangulation_2/Periodic_2_triangulation_2.txt b/Periodic_2_triangulation_2/doc/Periodic_2_triangulation_2/Periodic_2_triangulation_2.txt index 19a0f572fba..a2bf64e5519 100644 --- a/Periodic_2_triangulation_2/doc/Periodic_2_triangulation_2/Periodic_2_triangulation_2.txt +++ b/Periodic_2_triangulation_2/doc/Periodic_2_triangulation_2/Periodic_2_triangulation_2.txt @@ -398,6 +398,8 @@ in the unit rectangle. The tests were done on an Intel i7 @ 2.67GHz. A 2D periodic triangulation can be visualized by calling the \link PkgDrawPeriodic2Triangulation2 CGAL::draw() \endlink function as shown in the following example. This function opens a new window showing the given Periodic Triangulation. Elements of the periodic triangulation can be viewed in four different modes: +\cgalExample{Periodic_2_triangulation_2/draw_periodic_2_triangulation_2.cpp} + - STORED Display all geometric primitives as they are stored in Triangulation_data_structure_2; - UNIQUE Display only one representative of each geometric primitive even if the triangulation is computed in multiply sheeted covering space; - STORED_COVER_DOMAIN Same as STORED but also display all primitives whose intersection with the original domain of the current covering space is non-empty;