Commit Graph

330 Commits

Author SHA1 Message Date
Giles Bathgate f6dfeba815 Use CGAL_NO_ASSERTIONS with the CGAL_NOEXCEPT macro.
This avoids penalizing release builds in which assertions are not
made within the destructors, and so no exception can be thrown.
2015-12-19 15:47:16 +00:00
Laurent Rineau e0f8f4f85f Refresh the branch Mesh_3-manifold_criterion-lrineau
For the moment, the manifold feature is no longer working.

Merge remote-tracking branch 'cgal-dev/Mesh_3-manifold_criterion-lrineau' into Mesh_3-manifold_criterion-lrineau

Conflicts:
	Mesh_3/include/CGAL/Mesh_3/Mesh_complex_3_in_triangulation_3_base.h
	Mesh_3/include/CGAL/Mesh_3/Mesher_3.h
	Mesh_3/include/CGAL/Mesh_3/Refine_facets_3.h
	Polyhedron/demo/Polyhedron/Polyhedron_3.cpp
	Polyhedron/demo/Polyhedron/Polyhedron_demo_mesh_3_plugin.cpp
	Polyhedron/demo/Polyhedron/Polyhedron_demo_mesh_3_plugin_cgal_code.cpp
2015-12-18 14:55:20 +01:00
Giles Bathgate 3a725499ad Introduces CGAL_NOEXCEPT macro.
This macro is available for future compatibility with c++11, which
by default marks destructors noexcept(true). Some destructors
in CGAL do throw exceptions an so should be marked noexcept(false).
Since noexcept is not available in c++0x and below the macro is
disabled when CGAL_CXX11 is not defined since it is not required.
2015-11-23 16:47:59 +00:00
Giles Bathgate 9645135ff5 Introduces a CGAL_destructor_assertion macro.
This macro can safely be called from a destructor, even when
the stack is currently unwinding, and thus prevents uncatchable
exceptions.
2015-11-23 16:47:59 +00:00
Jane Tournois e4c5546996 fix unreferenced variable warning 2015-10-09 16:12:54 +02:00
mpkh f130b2183a Add missing std headers 2015-08-17 12:26:34 +04:00
Andreas Fabri 20c1b1a1f6 Merge branch 'Polygon_mesh_processing-GF-old' into Polygon_mesh_processing-GF
Conflicts:
	BGL/include/CGAL/boost/graph/Euler_operations.h
	BGL/include/CGAL/boost/graph/iterator.h
	Documentation/doc/Documentation/Doxyfile.in
	Documentation/doc/Documentation/dependencies
	Polyhedron/demo/Polyhedron/Polyhedron_demo_point_inside_polyhedron_plugin.cpp
	Polyhedron/demo/Polyhedron/Scene_polygon_soup_item.cpp
	Polyhedron/demo/Polyhedron/Selection_widget.ui
2015-07-01 13:52:44 +02:00
Philipp Möller baac7e673a Instead of a BOOST_STATIC_WARNING use a deprecated attribute 2015-04-13 16:58:00 +02:00
Sébastien Loriot b9f9c95623 move header to proper package 2015-01-06 14:18:59 +01:00
Laurent Rineau ba51958a35 Remove a warning in Surface_mesher 2014-11-28 12:14:25 +01:00
Jane Tournois 6b9018d515 avoid using deprecated header Triangulation_cell_base_with_circumcenter_3
this fixes warnings everywhere in Surface_mesher
2014-04-15 17:42:46 +02:00
Andreas Fabri 19c83c644f Add #ifdefs for VTK, and add #includes 2013-09-16 18:39:48 +02:00
Andreas Fabri 6c547e5663 Mainly added includes 2013-09-13 22:24:30 +02:00
Laurent Rineau 56794b87c2 "Working" progress
Will be reset with a forced push.

The new commit protects the debug code with
the macro CGAL_MESHES_DEBUG_REFINEMENT_POINTS.
2013-07-04 17:07:52 +02:00
Andreas Fabri 0f09c30b9b Cleanup: remove unused buggy code 2013-02-27 14:24:43 +01:00
Laurent Rineau e87dad0f95 Fix all warnings in demo/Polyhedron/
The compilation was fix g++-4.8, and the flags:
  --std=c++11 -frounding-math Wall -Wno-array-bounds -Wno-uninitialized
2013-02-06 17:03:20 +01:00
Andreas Fabri 7a17cc98a4 deal with Polynomial (only partially), Subdivision_method, Surface_mesher, Surface_reconstruction 2013-01-31 09:18:28 +01:00
Sébastien Loriot e717523d61 merge from next 2012-11-02 10:53:43 +00:00
Sébastien Loriot 76417d597d reintegrate feature branch Surface_mesher-c2t3_to_polyhedron_bug_fix-sloriot
avoid having dangling vertices in the conversion from c2t3 to polyhedron
2012-08-14 10:29:58 +00:00
Sébastien Loriot 3161033659 revert commit 71198 (forgot reintegrate option during the merge) 2012-08-14 10:27:13 +00:00
Sébastien Loriot 62476a477e avoid having extra vertices in the conversion from c2t3 to polyhedron
add a vertex to the polyhedron when a faces using it is added.
2012-08-13 12:36:09 +00:00
Philipp Möller 79b30908d5 WARNFIX: Silence a good part of unused variable/parameter warnings.
Wextra results in a dreadful wall of yellow in the test-suite and is
scary when using CGAL. Reduce some of the noise by silencing the
obvious cases with CGAL_USE or comments.
2012-08-07 11:04:32 +00:00
Laurent Rineau db194534c7 First big patch to fix -Wunused-local-typedefs
-Wunused-local-typedefs is a new warning flag of gcc-4.7, and it will enabled
 by -Wall since gcc-4.8 (not yet released).

The fix is a big set of removals of unused typedefs (or comments, or moves,
depending on the context).
2012-08-01 13:29:16 +00:00
Andreas Fabri 3367cc5450 merged from next 2012-05-01 13:18:18 +00:00
Philipp Möller 8f1ce2412c Removed all places where the CGAL_CFG_NO_TMPL_IN_TMPL work-around was
used. Those were mostly in Polyhedron and HalfedgeDS but some places
in Arrangement_2 used it, too. Neither of the parts of Arrangement_2
have been documented.
2012-04-13 13:13:30 +00:00
Laurent Rineau 9e007605eb Remove warning: unused variable 2012-01-23 07:40:54 +00:00
Laurent Rineau 902a51c9f2 Fix missing copyright and/or license notice 2012-01-19 16:51:59 +00:00
Laurent Rineau 8f59fd9592 Turn QPL into LGPLv3+ 2012-01-13 16:33:35 +00:00
Sébastien Loriot 91a5327fa8 change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Andreas Fabri 33299988a1 Make the Surface_mesh_default_triangulation_3_generator a template class 2011-09-27 11:50:08 +00:00
Guillaume Damiand a29c905ee0 Replace BOOST_STATIC_ASSERT by CGAL_static_assertion. 2011-08-31 14:30:07 +00:00
Laurent Rineau 369498d1e5 Cancel revision 64607. There had been a problem with the branch.
| ------------------------------------------------------------------------
  | r64607 | efif | 2011-07-05 17:27:04 +0200 (Tue, 05 Jul 2011) | 1 line
  | 
  | Merged feature-branch Aos_2-new_functors-tau into next
  | ------------------------------------------------------------------------
2011-07-06 11:11:58 +00:00
Sébastien Loriot 8ce2048aea add #include<CGAL/config.h> before any directive CGAL_USE_* 2011-03-02 18:52:57 +00:00
Andreas Fabri 44c071cddf Unify struct/class 2010-11-18 08:06:16 +00:00
Andreas Fabri 7eee096335 Remove unused variable 2010-11-18 08:03:32 +00:00
Laurent Rineau 987ed27b16 Fix parenthesis (bad use of operator precedence).
One of those I-dont-understand-how-it-could-work bug!
2010-11-12 10:50:39 +00:00
Andreas Fabri 2896a2895d Remove unused variable 2010-11-12 09:13:01 +00:00
Laurent Rineau 5a91202b3c Oops! I used operator^ where I should have used operator& !! 2010-10-06 09:48:48 +00:00
Andreas Fabri aeb92187d9 Change template parameter name 2010-09-27 13:26:53 +00:00
Sébastien Loriot b429f3c539 add default constructor and a const for swig wrapping 2010-09-02 06:27:17 +00:00
Sébastien Loriot a40ad96c88 add documented but missing function 2010-09-01 12:24:55 +00:00
Sébastien Loriot e2a3098bb4 add documented but missing functions 2010-09-01 11:30:21 +00:00
Sébastien Loriot 5471e90cd1 s/succesful/successful 2010-08-12 08:30:26 +00:00
Laurent Rineau a13cf08d5b #warning is not correct C++. 2010-06-24 16:08:07 +00:00
Andreas Fabri 6e5a6f74b6 static_cast 2010-06-23 14:20:14 +00:00
Sébastien Loriot 52317dd49f add python script (replace_CGAL_NAMESPACE.py) to replace CGAL_BEGIN_NAMESPACE and CGAL_END_NAMESPACE
by namespace CGAL { and } //namespace CGAL. in all .h and .cpp files
in a directory.
Apply it to all packages in the trunk
Remove macro definition from the config.h file.
2010-06-09 07:37:13 +00:00
Andreas Fabri 48bb6afcf6 Remove extra ';' 2010-05-17 14:19:22 +00:00
Andreas Fabri 629bf20530 Remove ';' 2010-05-14 10:03:19 +00:00
Sylvain Pion 85dc12f2a7 Remove empty lines at beginning and end of files
(apply Scripts/developer_scripts/remove_empty_lines.pl).
2010-02-01 12:55:28 +00:00
Laurent Rineau 2378e3ebfc Add missing #include <set> 2010-01-13 22:32:38 +00:00
Laurent Rineau 570ede6437 Fix the name of the header protection macro. 2009-08-27 14:13:55 +00:00
Laurent Saboret a332a2dc4e Partially fixed the global orientation of the output mesh:
Complex_2_in_triangulation_3_polyhedron_builder used to orient coherently the facets but not globally: the mesh was randomly oriented towards inside or outside.
This fix orients the facet with max z towards +Z axis, in order to orient the mesh towards outside.
This is a naive algorithm but is works most of the time.
2009-08-03 10:57:57 +00:00
Laurent Saboret 1f05a2989a Moved output_surface_facets_to_polyhedron() from Surface_reconstruction_points_3 to Surface_mesher 2009-06-29 13:31:24 +00:00
Laurent Rineau a80352f38c Make Surface_mesher crash when a looping condition is detected, instead of
just displaying a warning (with the loop, the warning is a DoS on the CGAL
testsuite).
2009-05-05 14:10:13 +00:00
Laurent Saboret 1ee7c2d2ff Port to Linux/g++ 4.3 2009-04-14 15:24:57 +00:00
Laurent Saboret 005aefcf8a Fixed compilation error in class Complex_2_in_triangulation_3_polyhedron_builder 2009-04-10 09:14:14 +00:00
Sylvain Pion 55b427d531 lenght -> length 2009-04-07 19:30:59 +00:00
Laurent Rineau dff123ffcb Minor edit: comments, and update of the copyright. 2009-02-27 14:00:51 +00:00
Laurent Rineau fb51f5046d Had a forgotten #include 2009-02-27 14:00:22 +00:00
Laurent Rineau 1183905c3d Add the following function, which is documented:
Face_status face_status (const Cell_handle c, const int i, const int j) const
2009-02-07 13:30:04 +00:00
Laurent Rineau 1c91006892 More profiling instructions (beurk!) 2009-01-26 15:22:57 +00:00
Laurent Rineau f709e20493 - Add two header <CGAL/Surface_mesher/Profile_timer.h> and
<CGAL/Surface_mesher/Profile_counter.h> that wrap the one in CGAL/.
- Add profilers to several parts of Surface_mesher code.
2009-01-23 15:01:25 +00:00
Laurent Rineau b0cc8d2337 Remove check_restricted_delaunay, and assertions using it: that check is not robust, and is pretty useless now. 2009-01-23 13:49:56 +00:00
Laurent Rineau 38abf96ec8 Fix is_in_volume for images.
Note: That should impact only Mesh_3, which is not in CGAL-3.4-I.
2008-12-03 17:23:34 +00:00
Laurent Rineau f17c90018c Add parenthesis so that g++ does not complain about that. 2008-11-17 09:41:33 +00:00
Laurent Rineau afddfdcb23 Fix a warning 2008-11-10 14:37:48 +00:00
Laurent Rineau ec782e7c64 Fix Surface_mesher: remove all references to Singular_edges_allowed_tag,
which is a feature that I will not commit.
2008-10-29 13:42:19 +00:00
Laurent Rineau afa5e5203b Split <CGAL/make_surface_mesh.h> in two
files. <CGAL/Surface_mesher_generator.h> will not be documented. It can be
used to apply rules step be steps.
2008-10-28 17:42:27 +00:00
Laurent Rineau 813e25942d Commit a function that will be soon documented. 2008-10-28 17:34:02 +00:00
Andreas Fabri 9020359238 avoid VC++ warning 2008-10-14 08:27:53 +00:00
Laurent Rineau f4f78646d2 Fix <GL/gl.h> -> <CGAL/gl.h> (the latter is a workaround for Windows and 2008-10-08 11:49:36 +00:00
Laurent Rineau 43cc745311 Commit work of previous days (week-end, yesterday and this morning):
The surface mesher Qt4 demo can now deal with labellized images.
2008-10-07 13:00:59 +00:00
Laurent Rineau 9c8d626c30 Fix a bug in Surface_mesher: one cannot have two constructors for
CGAL::Surface_mesher::Implicit_surface_oracle_3<>.
2008-10-07 08:48:50 +00:00
Laurent Rineau 4028bff30a Multi_label_oracle is dead. 2008-10-03 14:38:24 +00:00
Laurent Rineau 01bcb32cb9 Internal and non documented stuff: gives access to the function object. 2008-10-03 13:58:08 +00:00
Laurent Rineau 201c494728 Remove #error introduced by revision 44887. 2008-09-30 12:50:31 +00:00
Michael Hemmer 28575ad723 rename Real_embeddable_traits::Sign -> Sgn 2008-09-18 16:32:35 +00:00
Sylvain Pion d167660a73 Remove the explicit To_double<> argument to Cartesian_converter<>: the default is fine. 2008-08-27 15:25:39 +00:00
Sylvain Pion c278a43b16 Follow-up of use of Robust_construction. 2008-08-27 15:16:57 +00:00
Sylvain Pion 3526c73a06 Use Robust_construction<>. 2008-08-27 15:11:20 +00:00
Sylvain Pion a76ed463b1 Bool -> bool in comment 2008-08-26 13:25:42 +00:00
Laurent Saboret a9e6b6fdfc Fixed compilation errors (Visual C++ 2005) 2008-08-19 16:00:52 +00:00
Andreas Fabri bb8c3dc397 Put verbose output in an #ifdef 2008-08-12 05:16:07 +00:00
Pierre Alliez 5a97fd3863 removed messages during surface meshing 2008-08-11 18:03:28 +00:00
Laurent Rineau 92e073f1db Add missing include. 2008-08-03 21:54:17 +00:00
Laurent Rineau 12e0e4ecc8 Add the output of remeshing to a new polyhedron. 2008-07-28 19:59:22 +00:00
Sylvain Pion 79864c0c8e Remove Arity_tag. 2008-07-22 12:29:01 +00:00
Laurent Rineau 6579b41282 Fix a segfault in Mesh_3. 2008-06-12 15:37:06 +00:00
Laurent Rineau 5bc7e76e17 Add an assertion, that checks if a facet is in conflict with its refinement
point. It MUST be (otherwise Surface_mesher enters an infinite loop).

If the assertion fails, its "what() string" is a set of debugging
informations.
2008-06-10 14:06:24 +00:00
Laurent Rineau b5bad15aa7 Fix an old nasty bug: the clipping for segment with a sphere was incorrect! 2008-06-09 14:20:14 +00:00
Laurent Rineau 6990082221 - New macro CGAL_SURFACE_MESHER_DEBUG_IMPLICIT_ORACLE
- More debug instructions in <CGAL/Surface_mesher/Implicit_surface_oracle_3.h>
2008-06-09 13:33:37 +00:00
Laurent Rineau e6b1bb3ae2 Put some debugging code between #ifdef/#endif CGAL_SURFACE_MESHER_DEBUG_CRITERIA 2008-06-06 12:28:14 +00:00
Laurent Rineau ddfc10e8e0 Minor changes:
- Add two const& 
  - Let before_insertion_impl in Surface_mesher_manifold and
    Surface_mesher_regular_edges pass its argument of type Facet to the same
    function in the base class.
2008-06-06 12:22:22 +00:00
Laurent Rineau 3702d39202 New parameters, that show the superiority of Surface_mesher over
VTK's marching cube.
2008-05-29 13:45:47 +00:00
Laurent Rineau 271df19d73 - First version of a VTK vtkImageData to vtkPolyData filter: mesh an
iso-value in a 3D image.
2008-05-21 22:16:03 +00:00
Laurent Rineau 4ed2298896 Allow to construct a Gray_level_image_3 from an Image_3. 2008-05-21 22:11:03 +00:00
Laurent Rineau c79aacdc8c Fix the error "error: 'number_of_facets_on_surface' was not declared in
this scope" in <CGAL/IO/Complex_2_in_triangulation_3_file_writer.h>.
2008-05-21 16:08:27 +00:00
Laurent Rineau abf246366d - add constness to facets_begin()/facets_end() in c2t3,
- add more VTK support: output a c2t3 to a vtkPolyData
- add a demo that shows the ability to display a c2t3 in a VTK viewer.
2008-05-20 11:51:10 +00:00
Laurent Rineau 7002346ca2 Minor change: add a missing const&. 2008-05-12 20:45:09 +00:00
Laurent Rineau 63b39ef1be Quick fix for Mesh_3. is_in_volumes() only affects Mesh_3 2008-05-12 20:43:54 +00:00