Commit Graph

372 Commits

Author SHA1 Message Date
Andreas Fabri 2f59ef6b9a Function exists already in Algebraic_foundations 2018-05-23 11:48:58 +02:00
Mael Rouxel-Labbé a0427ec756 Fixed abusing Triangulation_cell_base_3 for Delaunay triangulations
TriangulationCellBase_3 does not request a circumcenter;
DelaunayTriangulationCellBase_3 does.

Delaunay_triangulation_3 only compiled because
Triangulation_cell_base_3 (and Triangulation_ds_cell_base_3 !)
provided circumcenter() operators and DT3 inherited T3's TDS.

- The circumcenter() functions are removed where they shouldn't exist
- DT3 uses DT_cell_base_3 as cell base instead of T_cell_base_3
- Concepts/Classes that supposedly only required TriangulationCellBase_3
  and then built Delaunay triangulations with that (Alpha Shapes, etc.)
  are upgraded to request DelaunayTriangulationCellBase_3 (anyway, it
  wouldn't compile if you actually provided a model of
  TriangulationCellBase_3)
- Fixed various wrong templates in classes/concepts such as
  MeshVertexBase_3 not refining RegularTriangulationVertexBase_3
  and (only in the doc) defaulting to Triangulation_vertex_base_3
- Removed the deprecated class (for 4+ years) T_cell_base_with_circumcenter
2018-04-26 13:21:53 +02:00
Laurent Rineau c4dbedeaa2 Merge pull request #2829 from lrineau/Surface_mesher-use_cpp11_function-GF
Use CGAL::cpp11::function in CGAL::Implicit_surface_3
2018-02-19 14:27:24 +01:00
Laurent Rineau 78e7060525 Merge pull request #2712 from afabri/CGAL-VC+warnlevel_4-GF
Deal with VC++ warnings of level /W4
2018-02-19 14:27:06 +01:00
Laurent Rineau 721cca59a6 Use CGAL::cpp11::function in CGAL::Implicit_surface_3
That will fix the issue #2107.
2018-02-13 16:56:38 +01:00
Andreas Fabri 07b0ddf9a5 Fix disable/enable warnings; Fix indentation 2018-02-13 14:15:38 +00:00
Andreas Fabri df2e978158 Fix disable/enable warnings; Fix indentation 2018-02-13 14:02:40 +00:00
Sébastien Loriot 483f69728e Refresh branch 2018-02-12 22:21:38 +01:00
Maxime Gimeno 7fa4b380d2 fixes in includes logic. 2018-02-02 12:08:05 +01:00
Simon Giraudot 6269309d86 Use CGAL include for boost counting/transform iterators everywhere 2018-01-23 11:09:52 +01:00
Andreas Fabri 799260f604 Poisson surface reconstruction 2018-01-18 10:05:01 +00:00
Sébastien Loriot ff26773f7b remove include directive for checking GPL compliance in LGPL headers 2017-11-12 10:21:35 +01:00
Sébastien Loriot ee57fc2d6c add SPDX identifier for files under the GPL-3+ license 2017-11-12 10:17:51 +01:00
Sébastien Loriot 0698f79aff add SPDX identifier for files under the LGPL-3+ license 2017-11-12 10:17:50 +01:00
Maxime Gimeno 473abb652d iterate only finite vertices 2017-10-24 11:52:24 +02:00
Laurent Rineau 2b35bddfb2 Replace all std::binary_function by CGAL::binary_function 2017-10-04 16:36:32 +02:00
Laurent Rineau 7e9f756935 Replace all std::unary_function by CGAL::unary_function 2017-10-04 15:57:09 +02:00
Maxime Gimeno 7d5226bba3 Another review pass. 2017-08-10 11:22:21 +02:00
Maxime Gimeno f1a5b380dc Fixes 2017-08-09 10:31:04 +02:00
Maxime Gimeno 56cb0a66a3 Changes after review 2017-08-09 10:31:04 +02:00
Maxime Gimeno 088934730b changes in the doc. 2017-08-09 10:31:04 +02:00
Maxime Gimeno 593d7f6691 Use PMP::polygon_soup_to_polygon_mesh() in output_c3t3_to_facegraph() and adapt doc. 2017-08-09 10:31:04 +02:00
Maxime Gimeno d57be1d856 Add documentation and update changes.html 2017-08-09 10:31:04 +02:00
Maxime Gimeno 471af1180c Fix 2017-08-09 10:30:19 +02:00
Maxime Gimeno 6996030cf8 Add a function that exports the facets of a c2t3 in a facegraph. 2017-08-09 10:30:19 +02:00
Laurent Rineau b4cf8f575e Merge pull request #2257 from maxGimeno/Surface_reconstruction_SM_plugin-GF
Polyhedron_demo: Surface reconstruction plugin outputs Scene_surface_mesh_item
2017-07-21 10:45:24 +02:00
Maxime Gimeno 42c22fe74f Fix 2017-07-12 15:11:45 +02:00
Maxime Gimeno a2fa153afe Add a function that exports the facets of a c2t3 in a facegraph. 2017-07-12 14:43:56 +02:00
Laurent Rineau 0e1a5f7669 fix: Weighted_point_3 is templated by K, and not FT! 2017-07-12 10:22:51 +02:00
Laurent Rineau 1842d57098 Refresh with CGAL::Weighted_point_3 2017-07-11 13:30:39 +02:00
Laurent Rineau 0d3c455ef0 Remove unused Boost MPL headers 2017-07-11 13:30:19 +02:00
Laurent Rineau e863e53d5d Remove unused files 2017-07-11 13:21:58 +02:00
Mael Rouxel-Labbé 9fbf2720ce Annihilated Regular_triangulation_euclidean_traits_23 across all packages
Left a little bit alive in the tests and in the Triangulation_23/doc
2017-06-28 10:15:30 +02:00
Sébastien Loriot 50510c05ea add include directive for license of all GPL header files
done using:
ack-grep "^GPL" */package_info/*/license.txt -l | awk -F "/" '{print $1}' > /tmp/gpl_packages
for i in `cat /tmp/gpl_packages | \
          grep -v Operations_on_polyhedra | \
          grep -v Algebraic_kernel_for_circles | \
          grep -v Algebraic_kernel_for_spheres | \
          grep -v Polyhedron_IO`;
do
  echo $i
  python Scripts/developer_scripts/add_license_in_pkg_header.py $i
done
python Scripts/developer_scripts/add_license_in_pkg_header.py Operations_on_polyhedra Polygon_mesh_processing
python Scripts/developer_scripts/add_license_in_pkg_header.py Algebraic_kernel_for_circles Circular_kernel_2
python Scripts/developer_scripts/add_license_in_pkg_header.py Algebraic_kernel_for_spheres Circular_kernel_3
python Scripts/developer_scripts/add_license_in_pkg_header.py Polyhedron_IO Polyhedron
2017-01-19 15:20:25 +01:00
Andreas Fabri 54ec8f9d92 the VC++ testsuite should pass now 2016-11-03 13:06:02 +01:00
Sébastien Loriot 7b22018963 move unused files to archive 2016-10-06 09:55:50 +02:00
Sébastien Loriot 6007c2a32d move file to create medit mesh file from c2t3 to Surface_mesher package
I also refreshed the file
2016-10-06 09:55:49 +02:00
Laurent Rineau 51f5697d3d Add missing #include 2016-09-30 15:23:14 +02:00
Andreas Fabri 62c2d623b0 Fix package Circular_kernel_2: Add #include 2016-09-30 15:22:27 +02:00
Andreas Fabri beb1417477 remove unused header files; remove commented includes; changed include paths 2016-02-15 14:20:12 +01:00
Sebastien Loriot 4e9448cb9e Merge pull request #451 from GilesBathgate/throwing-destructors
Introduces a CGAL_destructor_assertion macro.
2016-01-14 14:08:10 +01:00
Giles Bathgate f0ac236713 Introduces a GCAL_NO_ASSERTIONS_BOOL macro
This macro is always defined. Its value will be true when assertions are defined
and false when assertions are not defined. This macro can then be used in place
of a true false constant, such as is needed for CGAL_NOEXCEPT.
2016-01-08 20:31:59 +00:00
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