Commit Graph

60 Commits

Author SHA1 Message Date
Sébastien Loriot 7e2ee496de update project name of cmake scripts of tests 2016-09-08 00:26:37 +02:00
Sébastien Loriot c869ee6855 update cmake scripts with at least one example requiring Core 2016-03-24 16:40:57 +01:00
Sébastien Loriot 4c29bf1b44 CMAKE_SOURCE_DIR -> CMAKE_CURRENT_SOURCE_DIR 2016-03-24 16:33:46 +01:00
Sébastien Loriot 881e4d3199 request Core only in examples, tests and demos when really needed 2016-03-07 22:36:57 +01:00
Sébastien Loriot 2d191d6651 commit CMakeLists.txt for all examples and tests 2016-03-07 17:39:36 +01:00
Sébastien Loriot 72c8aa7b05 make 2D-lloyd working with the projection traits 2016-01-29 15:16:51 +01:00
Laurent Rineau 3a4acc64de cleanup
Remove all directories and files listed in ./dont_submit. I have
verified that their usefulness is rather low.
2015-12-31 18:13:17 +01:00
Guillaume Damiand cf1c0ea0ca Merge branch 'CGAL_headers_only-gdamiand_cjamin-OLD' into CGAL_headers_only-gdamiand_cjamin 2015-10-01 09:12:55 +02:00
Jane Tournois 90a2ba7345 avoid unused variable warning 2015-05-20 14:31:43 +02:00
Jane Tournois bcf4e13beb fix unused variable warning 2015-05-20 12:23:38 +02:00
Jane Tournois cac6609c53 use CGAL assertions 2015-05-19 09:07:54 +02:00
Jane Tournois b7b8be3500 test compilation of new constructor 2015-05-19 09:07:54 +02:00
Jane Tournois 10affa9072 fix conversion warning 2015-05-19 09:07:53 +02:00
Jane Tournois 8e61cfdd49 new attempt to fix unused variables warning from boost with clang
and add namespace CGAL for Lloyd 2D parameters
2015-05-19 09:04:28 +02:00
Jane Tournois 0c6b51f46f add newline at end of file
fix warnings
2015-05-19 09:04:27 +02:00
Jane Tournois 7c03566d5a fix unused variable warning 2015-05-19 09:04:27 +02:00
Jane Tournois 83c415bca9 move Mesh_optimization_return_code from Mesh_3 to Mesh_2
Mesh_3 already depends on Mesh_2,
but not the other way around
2015-05-19 08:54:36 +02:00
Jane Tournois d119879313 add namespace parameters for parameters of lloyd_optimize_mesh_2 2014-11-25 10:42:38 +01:00
Jane Tournois 8532b75851 add a test for lloyd_optimize_mesh_2 2014-11-24 17:01:40 +01:00
Guillaume Damiand ebc4300334 Header only for random.cpp.
For the header only version, the global variable default_random no more exist => we need to replace all occurences of default_random by a call to the global function get_default_random().
As usual, no modification for the non header only version.
2014-11-14 14:20:26 +01:00
Andreas Fabri 9fea4e7c99 one less warning in Mesh_2, Point_set_2 2013-01-30 18:49:40 +01:00
Laurent Rineau b4c3b341ba Make Projection_traits_3 compatible with Mesh_2
And add one test.
2012-10-16 14:46:46 +00:00
Laurent Rineau fcd8565b46 Revert a buggy revision
Bug reported by a user against CGAL-4.0.2
A single triangle cannot be meshed!

The fault was a buggy assertion added in the following revision:
  |-----------------------------------------------------------------------
  |r66359 | lrineau | 2011-11-16 18:58:22 +0100 (Wed, 16 Nov 2011) | 3 lines
  |
  |Add an assertion that checks that a point constructed as the midpoint of an
  |edge is located either on the edge or inside one of the two incident faces.
  |
  |-----------------------------------------------------------------------
And the assertion message was:
  terminate called after throwing an instance of 'CGAL::Assertion_exception'
    what():  CGAL ERROR: assertion violation!
  Expr: zone.locate_type != Tr::FACE || zone.fh == f || zone.fh == n
  File: /home/lrineau/wc/Mesh_2/test/Mesh_2/../../include/CGAL/Mesh_2/Refine_edges.h
  Line: 430
  Explanation: Your data set contains at least a vertex that is very close to 
    a constrained edge! Mesh_2 cannot mesh that sort of data set.
2012-07-26 14:02:13 +00:00
Laurent Rineau b62a301153 Test the undocumented function refine_Delaunay_mesh_2_without_edge_refinement
It seems that OpenSCAD uses that function. It had a compilation error with
g++-4.7 (the patch is already in next).
2012-06-14 13:17:41 +00:00
Sébastien Loriot 5c8f3946f4 call to is_conforming_[Gabriel,Delaunay] was no longer possible: fix proposal.
Add a test into the testsuite
2010-10-19 14:23:04 +00:00
Laurent Rineau fe75f9c779 Test CGAL_USE_CORE before using EPEC_with_sqrt. 2010-03-30 13:46:27 +00:00
Laurent Rineau e48a2c8bcd Make test_meshing.cpp compile even if CORE is not here. 2010-03-23 14:58:01 +00:00
Laurent Rineau 2cec212fa0 Add tests of is_valid() in test_meshing.cpp (previously Mesh_2 was creating
invalid triangulations! See revision 54660.)
.
2010-03-10 18:09:33 +00:00
Laurent Rineau 50eaf2c988 Add tests cdt.is_valid(). 2010-03-10 16:51:09 +00:00
Laurent Rineau 274143fa4d - Fix the Mesh_2 test suite: previously it was no longer testing anything!
- Fix the handling of the cdt with the triangulation plus_2.
- Add tests with CDT_plus_2.
2010-03-09 15:25:12 +00:00
Andreas Fabri 6c4d2de17a A test that the constraint hierarchy gets updated when a Constrained_triangulation_plus_2 is conformed 2010-03-09 13:07:27 +00:00
Laurent Rineau 07c73ca08d Remove no-longer-used GNUmakefile (and deps) 2009-08-20 13:58:10 +00:00
Laurent Rineau df242c52e8 Remove no-longer-used GNUmakefile 2009-08-20 13:46:43 +00:00
Andreas Fabri 669c54ae42 Replace assert_code 2008-11-25 08:27:30 +00:00
Andreas Fabri c264b9ceb0 CGAL_assertion -> assert 2008-11-24 09:07:47 +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
Laurent Rineau b92312032e Leftovers from commit 42968:
"New directory Mesh_2/include/CGAL/Meshes/ that aggregates several
non documented files that are common to Mesh_2, Mesh_3 and Surface_mesher."
I forgot to commit the removal of old files.
2008-04-25 13:38:54 +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
Laurent Rineau 7b314c3825 Improved tests: use two differents kernels.
That should detect more warnings, compilation errors, and runtime errors.
2007-11-15 10:18:22 +00:00
Laurent Rineau 76084f2ec9 Should fix the use of ::atoi under SunOS:
- include <cstdlib>,
  - use std::atoi.
2007-11-07 10:23:42 +00:00
Laurent Rineau 51693ed309 Include <cstdlib>, for the use of std::atoi. 2007-10-21 18:20:17 +00:00
Sylvain Pion de20789af6 CGAL_DONT_HAVE_MEMORY_SIZER is no more. 2007-03-16 22:55:05 +00:00
Laurent Rineau aa96d1bf16 Displays a message when Boost.Bimap is used.
My testsuite platform will have Boost.Bimap support.
2007-03-15 11:47:52 +00:00
Laurent Rineau f5c76d2027 Fix for platforms with macro CGAL_DONT_HAVE_MEMORY_SIZER. 2007-03-15 10:14:59 +00:00
Laurent Rineau f1d5ec3a62 Use Boost.Bimap in Double_map.
Boost.Bimap is a bit faster (150-190% faster), and less
memory-consumer. Whereas the old Double_map implementation does not seem to
be sensitive to caching effects, the Bimap implementation seems to be
faster when run twice or more.

See the measurements bellow. Three runs of ./bench_double_map.bimap and
./bench_double_map.cgal. They are both compiled with -O2, and
./bench_double_map.bimap is compiled with -DCGAL_USE_BOOST_BIMAP
-I<path_to_boost_bimap>.

lrineau@tsetse ~/CGAL/Packages/Mesh_2/test/Mesh_2 $ for in in 1 2 3; do
  echo 'BIMAP';
  ./bench_double_map.bimap 200000 30;
  echo 'OLD DOUBLE_MAP';
 ./bench_double_map.cgal 200000 30;
done
BIMAP
Total time:           4.41933
Time for 'insert':    3.15152
Time for 'pop_front': 1.26781
Resident memory:      14843904
Virtual  memory:      26423296
OLD DOUBLE_MAP
Total time:           6.581
Time for 'insert':    4.5593
Time for 'pop_front': 2.0217
Resident memory:      18030592
Virtual  memory:      29519872
BIMAP
Total time:           3.56746
Time for 'insert':    2.49262
Time for 'pop_front': 1.07484
Resident memory:      14843904
Virtual  memory:      26427392
OLD DOUBLE_MAP
Total time:           6.76597
Time for 'insert':    4.70729
Time for 'pop_front': 2.05869
Resident memory:      18034688
Virtual  memory:      29519872
BIMAP
Total time:           3.51347
Time for 'insert':    2.43964
Time for 'pop_front': 1.07383
Resident memory:      14856192
Virtual  memory:      26427392
OLD DOUBLE_MAP
Total time:           6.74597
Time for 'insert':    4.6183
Time for 'pop_front': 2.12768
Resident memory:      17854464
Virtual  memory:      29523968
2007-03-14 18:53:37 +00:00
Laurent Rineau 936b1a06c0 Update the range of cdt.number_of_vertices(), in test_meshing.cpp: the
usual number of steiner points has increased (I do not know why).
2007-03-12 09:58:52 +00:00
Laurent Rineau 198b59406e Attempt to understand the GLIBCXXDEBUG error. 2007-02-19 14:53:57 +00:00