Commit Graph

40 Commits

Author SHA1 Message Date
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
Laurent Rineau db57871ebe more points are inserted, since the Gabriel criteria is a *strict Gabriel* criteria. 2006-12-01 17:29:46 +00:00
Laurent Rineau 774e48f5f7 - fix a Rebind bug in <CGAL/Delaunay_mesh_face_base_2.h>, reported by
"Mike A. Harris" <mharris@mharris.ca> on the cgal-discuss mailing list.
- add a new test file to avoid that bug to reappear one day.
2006-07-25 09:25:45 +00:00
Laurent Rineau 6af3f83423 added dep stuff to test/Mesh_2 2006-07-25 09:13:26 +00:00
Laurent Rineau 550d1df0ed - new debug macros:
- CGAL_MESH_3_DEBUG_INSERTION_RADIUS,
   - CGAL_MESH_2_DEBUG_INSERTION_RADIUS,
   - CGAL_MESHES_DEBUG_REFINEMENT_POINTS,
   - and CGAL_MESH_3_DIRTY_DEBUG_SPHERES.
  These are not activated by default, of course. The latter was to debug
  test/Mesh_3/combined_spheres.cpp.
2006-07-10 09:13:23 +00:00
Laurent Rineau 0a1b5756e5 Copy Mesh_2, Mesh_3 and Surface_mesher, from the branch
"cannot_wait_for_CGAL-3.2" to the trunk.

My idea: the branch is the real working version, and I want it to be joined
back to the trunk:

          __________________________         cannot_wait_for_CGAL-3.2 branch
         /                          \
        /                            \ 
-------------------------------------------- trunk
        S                             M

The modification of the trunk between the splitting point S and the merging
point M has already been merged into "cannot_wait_for_CGAL-3.2".

The trunk versions of these three packages have been removed already.
2006-06-06 13:38:15 +00:00
Laurent Rineau b80c458ae5 Remove trunk of Mesh_2, Mesh_3 and Surface_mesher.
Do not worry: I will "svn cp" the branch "cannot_wait_for_CGAL-3.2" into the
trunk, and the trunk will inherit from the logs of the branch.

My idea: the branch is the real working version, and I want it to be joined
back to the trunk:

          __________________________         cannot_wait_for_CGAL-3.2 branch
         /                          \
        /                            \ 
-------------------------------------------- trunk
        S                             M

The modification of the trunk between the splitting point S and the merging
point M has already been merged into "cannot_wait_for_CGAL-3.2".
2006-06-06 13:36:21 +00:00
Laurent Rineau 0161de5a27 - added test_conforming and test_meshing in test/ with test files.
- rename test/Mesh_2/makefile to GNUmakefile, not submitted:
  makefiles in the testsuite are generated.
- fix a BUG in Mesher_level: one_step() and try_to_insert_one_point(), in
  Null_mesher_level must return false! This fix solves the "follow under
  mouse" bug of mesh_demo.C!
- change some DEBUG macro names to:
    CGAL_MESH_2_DEBUG_BAD_FACES
    CGAL_MESH_2_DEBUG_CLUSTERS
    CGAL_MESH_2_DEBUG_CONFLICTS_ZONE
    CGAL_MESH_2_DEBUG_DRAW
    CGAL_MESH_2_DEBUG_INSERTIONS
    CGAL_MESH_2_VERBOSE
  to please CGAL developer manual.
- add a seed in fish.poly

(Note to Andreas: this is the bug I was looking for. The added test file
helped me to find it cause.)
2006-04-13 16:07:19 +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
Laurent Saboret 541f5f7f0e Remove .cvsignore files (changed to svn:ignore properties) 2006-02-14 09:20:20 +00:00
Laurent Saboret 6b42bcbb9b Move packages to trunk root 2006-02-14 08:58:16 +00:00