Commit Graph

288 Commits

Author SHA1 Message Date
Clement Jamin 82811b9a05 Tests of parallel DT and RT 2014-06-30 16:24:04 +02:00
Sébastien Loriot 0230e979e2 Merge branch 'CGAL-use_leda-GF-OLD' into CGAL-use_leda-GF
Conflicts:
	Arrangement_on_surface_2/test/Arrangement_on_surface_2/construction_test_suite_generator.cpp
	Arrangement_on_surface_2/test/Arrangement_on_surface_2/test_construction.cpp
	Documentation/doc/Installation.txt
	Kernel_23/include/CGAL/Exact_predicates_exact_constructions_kernel.h
2014-06-18 22:50:06 +02:00
Aymeric PELLE 4ca1c8a6c1 Remove some bad assert in test_RT_cell_base_with_weighted_circumcenter_3.cpp.
These asserts should have tested that the wighted_circumcenter is well
invalidate in some cases. However, we can't access to the private pointer.
So we can't check that the pointer is NULL when invalidate_circumcenter is
called. These asserts tested that the new computed weighted circumcenter has
a different address after invalidate_circumcenter. But, that fact isn't
guaranteed.
2014-06-05 15:02:13 +02:00
Aymeric PELLE 62fe81758a Rename test_regular_triangulation_cell_base_with_weighted_circumcenter_3.cpp.
It generated a too long file path for some Windows tools (linker).
2014-06-04 15:16:56 +02:00
Aymeric PELLE 144545cbf2 Fix Regular_triangulation_cell_base_with_weighted_circumcenter_3.
The default value for the template parameter 'Cell base' is replaced by
Regular_triangulation_cell_base_3. (The doc is updated.)
The operator= is fixed.
A test file is added for this class.

Trivial bug-fix for master
2014-06-03 19:34:29 +02:00
Clement Jamin 6721cb970c Fix include 2014-05-14 17:35:39 +02:00
Andreas Fabri f7d7395864 Merge branch 'OLD' into CGAL-use_leda-GF
Conflicts:
	Boolean_set_operations_2/test/Boolean_set_operations_2/test_polygon_validation.cpp
	Envelope_2/test/Envelope_2/test_envelope_segments.cpp
	Intersections_3/test/Intersections_3/bbox_other_do_intersect_test.cpp
2013-03-27 20:22:54 +01:00
Andreas Fabri ae58f3896a also use leda if it is installed 2013-03-24 17:48:33 +01:00
Sébastien Loriot 9fcf46e11a replace CGAL_[kernel/qpe/triangulation/]_assertion by assert in tests
this should be the case, following our guidelines.

using:
find */test/* -name '*.[hc]*' | xargs sed -i 's/CGAL_assertion/assert/g'
2013-03-21 10:50:55 +01:00
Andreas Fabri c029f702a3 use more types 2013-02-07 11:02:14 +01:00
Andreas Fabri 27812333bf more CGAL_USE_TYPE 2013-02-06 15:53:02 +01:00
Andreas Fabri 13bac84716 less warnings in various packages 2013-02-01 10:27:07 +01:00
Andreas Fabri 93e7fe275b less warnings in Triangulation_3 2013-01-31 15:50:13 +01:00
Laurent Rineau cf87ecd497 Rename a test to avoid a conflict
There was a target name conflict with
  Triangulation_2/test_triangulation_tds.cpp
2012-10-05 14:22:15 +00:00
Marc Glisse 0a40b7c0e2 Unused variable warnings 2012-07-28 11:15:45 +00:00
Philipp Möller caf3cce0d1 Silence unused parameter warnings. Leave the ones from the test-suite
that could signal incomplete tests.
2012-06-22 14:22:16 +00:00
Laurent Rineau 6dbf5ec5b0 #define CGAL_HILBERT_SORT_WITH_MEDIAN_POLICY_CROSS_PLATFORM_BEHAVIOR 1
in that test!
2012-03-09 15:13:03 +00:00
Laurent Rineau f9c20ae282 Updated output 2012-03-09 14:08:25 +00:00
Sébastien Loriot 9f1ce0c2b7 temporary test using stable_sort to see whether the issue would be
fixed by fixing std::nth_element
2012-03-08 10:52:53 +00:00
Sébastien Loriot 1a7c312eeb add example to check the Delaunay)3 is deterministic 2012-03-07 14:24:04 +00:00
Laurent Rineau 8f59fd9592 Turn QPL into LGPLv3+ 2012-01-13 16:33:35 +00:00
Laurent Rineau 7ea9ad85a8 fix previous commit (bug in the test) 2011-07-28 17:00:13 +00:00
Laurent Rineau 1fb7632ec3 Fix a bug in finite_adjacent_vertices when dimension()==1.
When tr.dimension()==1, tr.finite_adjacent_vertices(...) and
tr.finite_incident_edges(...) returned infinite things.
2011-07-28 16:53:11 +00:00
Sébastien Loriot c1ff39de9a fix documentation from branch (code merged in r60697) 2011-02-28 17:22:38 +00:00
Sébastien Loriot 2889b6ad28 no deprecated warning in tests testing move_point 2011-02-28 13:31:13 +00:00
Laurent Rineau eea1755591 Merge the candidate branch of
https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/Rt::vertices_inside_conflict_zone
in trunk.
2010-12-21 16:36:04 +00:00
Laurent Rineau 96162627aa Merge the following small features in trunk:
https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/Remove_cluster
  https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/Structural_filtering

Merge also a partial support of:
  https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/Rt::vertices_inside_conflict_zone
    (vertices_inside_conflict_zone" is added in Regular_triangulation_3,  without documenting it)
2010-12-10 17:02:10 +00:00
Laurent Rineau 0625b6c6bd int -> std::size_t|size_type 2010-06-24 13:27:44 +00:00
Andreas Fabri 1e12152c5f int size_t fixes 2010-06-24 12:50:37 +00:00
Andreas Fabri c79a1ebbf6 int -> size_type/std::size_t 2010-06-21 14:12:02 +00:00
Laurent Rineau 7e87099363 Merge the branch /branches/candidate-packages/Triangulation_3
- Work from:
    Pedro Machado Manhaes de Castro <Pedro.Machado@sophia.inria.fr>
    Olivier Devillers <Olivier.Devillers@sophia.inria.fr>
- The work is:
    - displacement for 3D triangulation (Olivier and Pedro)
         https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Move_T2T3
2010-05-31 08:48:09 +00:00
Sylvain Pion f62ca9c7f0 Add regression test for the iterator order determinism. "Tout ca pour ca"... 2010-01-27 15:18:45 +00:00
Sylvain Pion 45b6d32b62 Remove old (CGAL < 3.0) version of the remove() code (which could be triggered by CGAL_DELAUNAY_3_OLD_REMOVE).
No one complained about the new code, so let's remove the old remove.
2010-01-13 13:44:54 +00:00
Sylvain Pion d8b6fa8f3d Use EPECK instead of SC<GMP|MP_Float>. 2010-01-12 10:40:47 +00:00
Manuel Caroli 4bcee3abdf add geometric access functions point(...) +doc + tests 2009-12-04 12:14:50 +00:00
Sébastien Loriot 328fb9dfa4 correct bug in Compare_weighted_squared_radius_3::operator() with one point 2009-12-02 18:16:41 +00:00
Sylvain Pion 828a6eeabc Merge the Triangulation_3_Location_policy branch.
- Deprecate the "hierarchy" implementation detail in the package API.
- Introduce a Location_policy parameter instead.
- Add a "Complexity and Performance" section in the user manual.
- Add a benchmark program (dont_submit'ed for now)

Note : merge done by hand as svnmerge.py got too easily confused...
2009-11-04 12:57:51 +00:00
Sébastien Loriot 910a6f94d6 Regular_triangulation_filtered_traits_3 is now deprecated 2009-10-20 21:44:47 +00:00
Sébastien Loriot 7d50e382e1 take into account boolean stating wheather filter kernel and static filters should be used for regular_euclidean_traits_3.
This avoids the problem of specialization using the kernel type parameter of the traits.
2009-10-19 14:29:18 +00:00
Sébastien Loriot 23fc2688df bad namespace for Static_filter_error 2009-10-16 06:30:46 +00:00
Sébastien Loriot 94e9b83218 add predicates Compare_weighted_squared_radius_3 in Regular traits which is the weighted equivalent of Compare_squared_radius_3 in the kernel. A semi-static filtered version is also provided. 2009-10-15 13:24:47 +00:00
Sébastien Loriot 1762e33e38 test-suite of Power_test_3 static filter 2009-10-15 13:18:05 +00:00
Sylvain Pion 516f8d5eee Same as revision 51948 on CGAL-3.5-branch :
Rename following the converging convention to prevent future incompatibility :
  - Vertex_container -> Vertex_range
  - Face_container   -> Face_range
  - Cell_container   -> Cell_range
2009-09-15 17:12:03 +00:00
Sylvain Pion 7f61ffff50 Add a Rebind_vertex and a Rebind_cell to the TDS that allow to get new TDS types
with changes vertex/cell types.  Documented as advanced in the TDS concept.
2009-08-04 14:32:30 +00:00
Sylvain Pion 8fdac12e77 Add insert_in_hole() function overloads (in T3 and TDS_3) taking an additional
Vertex_handle argument that specifies the vertex to be used for the new vertex
(instead of creating a new one internally).
2009-08-04 13:48:07 +00:00
Sylvain Pion ffedfc0d58 Add some locate() and insert() convenient overloads, taking the start hint as a
Vertex_handle (instead of the Cell_handle currently).
2009-07-24 21:57:38 +00:00
Manuel Caroli ebdb067ab8 adding method insert that takes the return values of a point location query
to the triangulation hierarchy.
2009-05-12 15:10:42 +00:00
Sylvain Pion 62aac76768 Actually, much better naming (Range concept like) :
vertex_container() -> vertices()
cell_container()   -> cells()
2009-04-10 15:23:53 +00:00
Sylvain Pion 525ac5818a Add vertex_container() and cell_container() to the TDS. 2009-04-10 15:05:43 +00:00
Monique Teillaud ba9b7b7143 incident_vertices(vertex) renamed as adjacent_vertices()
old name left for backward compatibility (and old functions still tested)
2009-04-08 10:06:32 +00:00
Laurent Rineau 9587ad8c9e Fix the binary mode test: it failed on Windows. 2008-11-18 11:20:59 +00:00
Laurent Rineau 6108848419 Test and fix the input/output operator of CGAL::Triangulation_3
*in binary mode*.
2008-11-14 11:59:14 +00:00
Camille Wormser a6d18262ae adds (finite_) incident_facets(Vertex) for the 2D case,
deprecates the usage of (finite_) incident_cells in the 2D case.
2008-06-05 02:51:51 +00:00
Fernando Cacciola f93437ca22 Removed *unmodified* auto-generated CMakeLists.txt (now created by create_internal_release) 2008-05-05 14:01:55 +00:00
Camille Wormser 646258adb8 finished rewriting the incident_*(vertex):
- all the code is factored around visit_incident_cells.
- incident_edges has been added
- finite versions of all incident_*(vertex) have been added
  thanks to a Filter template parameter
2008-04-20 05:48:13 +00:00
Sylvain Pion d9fbc22596 "Call" CGAL_For_all() on Cell_circulator to check it works as well. 2008-04-02 13:48:51 +00:00
Camille Wormser 9f664c3ac7 documentation + testsuite for incident_* 2008-04-01 15:29:50 +00:00
Andreas Meyer 20315de571 * replaced CGAL_test_assert with ::assert, instead of CGAL_assertion
* removed include/Testsuite/assert.h
2008-03-19 13:45:36 +00:00
Fernando Cacciola b704509dcf Examples/Demos/Test CMake scripts updated 2008-03-05 21:14:02 +00:00
Fernando Cacciola a659cd852a Added project() and conditional test for CGAL_DIR 2008-02-14 15:42:36 +00:00
Fernando Cacciola 14043c43a0 Replaced CGALROOT by CGAL_DIR (the latters is used by CMake automatically) 2008-02-08 17:47:21 +00:00
Fernando Cacciola afddfc4fca CMake scripts for demos/examples/test added 2008-02-06 19:06:24 +00:00
Sylvain Pion 487a6ae509 Removes obsolete workarounds for SunPRO and MipsPRO. 2008-01-20 21:44:23 +00:00
Sylvain Pion 7049af4f77 Rename *.C to *.h. 2007-12-28 18:39:49 +00:00
Andreas Meyer 6623d525eb * replaced assert in */test/*/*.{cpp,h} with CGAL_test_assertion
* replaced #include <assert.h> with the according CGAL/Testsuite/assert.h
2007-11-07 21:35:42 +00:00
Sylvain Pion 606b7aa6f0 Add missing operator->() to Facet_circulator. 2007-08-23 12:59:06 +00:00
Sylvain Pion 85afdc3e4d - Add simple tests for the Delaunay.dual() functions.
- Add an undocumented circumcenter() template member function
  in Triangulation_ds_cell_base_3 so that we can continue to use it as default
  template parameter of the TDS, and still have .dual() working when only the
  VertexBase type is changed (e.g. for the hierarchy).
2007-08-21 13:23:33 +00:00
Sylvain Pion 1df8df5721 Allow operator== between triangulations to have 2 different TDS types. 2007-07-24 12:57:49 +00:00
Christophe Delage a7f0ead112 Triangulation_3 iterator range insert and constructors now
use spatial_sort.
Examples and demos now call range insert when possible.
2007-03-30 09:30:22 +00:00
Sylvain Pion 507482cf86 Replace boost::rand48 by boost::minstd_rand as it is more portable
(the former requires uint64_t, and pgCC does not seem to have it).
2007-03-10 11:33:22 +00:00
Sylvain Pion ae1f333ec2 Remove Makefile (dont_submitted, and not uptodate, missing one test program...).
Rename .C to .cpp.
2007-01-27 20:34:21 +00:00
Nico Kruithof 6841f56078 Adding the test where the Delaunay triangulation and a (unweighted)
regular triangulation are compared. Also added vertices_in_conflict
to Regular_triangulation_3.h for that.
2006-09-12 07:31:24 +00:00
Nico Kruithof 386b39ab4c Weighted_points that are inserted multiple times in the regular
triangulation are discarded (instead of being inserted). This is
consistent with the behaviour of Triangulation_3 and
Delaunay_triangulation_3. See also change in the docs by Monique.
2006-08-25 09:48:07 +00:00
Nico Kruithof 7ce6d89b94 Adding the simplex class to the Triangulation_3 package. 2006-08-09 15:25:13 +00:00
Sylvain Pion cf872de855 - Add a new TCellBase model Triangulation_cell_base_with_circumcenter_3,
which stores the circumcenter.
- Delaunay.dual() now calls the .circumcenter() function of the cell
  to retrieve it.
- It implies a new requirement on the TCellBase, for the Delaunay::dual()
  case, hence the default model T_cell_base_3 provides a new function
  (and the concept is updated).
2006-08-04 18:23:08 +00:00
Sylvain Pion 102341c2c6 Delaunay :
- add function .dual_support(Cell_handle, int) returning a Line_3.
- replace the requirements Plane_3, Construct_perpendicular_line_3
  and Construct_plane_3 by the new Construct_equi_distant_line_3.
2006-08-04 15:21:57 +00:00
Laurent Rineau 780195eb9f Revert incorrect revision 32406 for test/Triangulation_3/Makefile 2006-07-12 00:04:18 +00:00
Laurent Rineau 7f053b6b83 - fixed operators << and >> for triangulations, if the stream is in binary
mode
- fixed only if dimension()==3. If dimension()<3, tds.print_cells() should
  be corrected. The handling of the dimension is ugly (copy-pasting). I
  prefere not to fix that code.

Note 1: Test suite is ok.
Note 2: binary i/o operators are tested in Mesh_3
2006-07-12 00:00:48 +00:00
Marc Glisse b13e3b5ec0 Last round of missing std:: before 3.2 (Andreas permission) 2006-04-19 16:56:12 +00:00
Andreas Fabri bb24e0097e Added #ifdef CGAL_USE_GMP 2006-03-29 15:05:59 +00:00
Joachim Reichel f582718758 rename create_makefile to cgal_create_makefile to avoid name clashes,
adjust all occurences of create_makefile and create\_makefile in the entire
repository (well, trunk only)
2006-03-15 22:10:02 +00:00
Sylvain Pion a9e6fec929 - Add missing operator==(NULL) for Facet_circulator. 2006-03-15 09:41:59 +00:00
Sylvain Pion f5ecb3ff85 - I love emacs and its users... 2006-03-15 09:19:23 +00:00
Andreas Fabri ce828e7398 Instead of forwarding it is enough to ot use using 2006-03-13 10:19:25 +00:00
Andreas Fabri c2fedb4fb9 Forward call to base class as using directive fails for VC7 in Regular_triangulation_filtered_traits_3.h 2006-03-13 09:47:28 +00:00
Laurent Saboret db6a8f948c Change CVS keywords to SVN style 2006-02-16 14:30:13 +00:00
Laurent Saboret 1aad55d4cb Change CVS keywords to SVN style 2006-02-14 10:08:15 +00:00
Laurent Saboret ee07ad352c Move packages to trunk root 2006-02-14 08:58:20 +00:00