Commit Graph

139 Commits

Author SHA1 Message Date
Laurent Rineau 681862491a update, more OpenGL stuff 2007-11-02 14:00:38 +00:00
Laurent Rineau f924e04db6 - Add a macro CGAL_SURFACE_MESHER_POLYHEDRAL_SURFACE_USE_PINPOLYHEDRON that
triggers the use of PointInPolyhedron, from Dr. Liu Jianfei"
  <liujianfei@pku.edu.cn>. His code is not shipped.
  That does not seem to be faster. :-(
2007-10-18 14:48:41 +00:00
Laurent Rineau 58e17f60f3 Fix warnings, again. 2007-10-17 16:44:50 +00:00
Laurent Rineau 2c03c1cf43 rename all shared pointer into "*_ptr" 2007-10-17 16:39:22 +00:00
Laurent Rineau 1f029db333 In Surface_mesher, a "Surface" is an object that can be passed by copy.
Generalize the use of boost::shared_ptr for all data of Polyhedral_surface_3<>
2007-10-17 16:27:23 +00:00
Laurent Rineau 0ee3afc639 Remove a std::cerr output. 2007-10-17 15:21:53 +00:00
Laurent Rineau 99031df5ce New attempt to make that class work. Not yet. :-( 2007-10-17 15:21:27 +00:00
Laurent Rineau 79efcce674 Attempt to replace the octree by something else: the Segment_tree_3 (from
SearchStructures).
It is actually slower, so I disable it by default. :-(
2007-10-17 12:59:45 +00:00
Laurent Rineau 49554ef06d Move Simple_map_container.h to Surface_mesher.
That should fix the Surface_mesher build errors, in the testsuite.
2007-10-16 16:10:55 +00:00
Laurent Rineau 5053a73fea fix std::max->CGAL_NTS max 2007-10-16 12:01:45 +00:00
Laurent Rineau 9ac3b1e631 Fix a bug in Surface_mesher_manifold. 2007-09-17 16:33:50 +00:00
Laurent Rineau 5a9bafcee6 typos 2007-08-08 14:29:57 +00:00
Laurent Rineau e4d1b4f876 Remove 6-i-j-k, use next_around_edge() instead. 2007-08-07 13:41:32 +00:00
Laurent Rineau c4b96ca9e5 more precise debug_info output 2007-08-07 11:16:12 +00:00
Laurent Rineau 6848cfac91 We had a robust circumcenter but not a robust squared radius. Fixed now.
Maybe this will make Mesh_3 crash-free... <hope>
2007-07-27 14:35:04 +00:00
Laurent Rineau 785f029ac3 Explicit qualitication of previous(). 2007-07-27 08:47:28 +00:00
Laurent Rineau 785ccf1e39 cosmetic change in a cerr output 2007-07-27 08:38:16 +00:00
Laurent Rineau 1cbd8e1f7b avoid division by zero 2007-07-27 08:37:22 +00:00
Fernando Cacciola 39bfd40aa4 ImageIO autolinking enabled 2007-06-21 13:07:15 +00:00
Laurent Rineau 796d7877b4 Do not try to mesh edges of the surface, it the surface has the tag Has_no_edges 2007-06-14 18:38:55 +00:00
Laurent Rineau 36b7e51dc0 again a new attempt to workaround imprecisions in constructors. Need work. 2007-06-14 12:51:32 +00:00
Laurent Rineau a30420ea22 Use Delaunay triangulation in Mesh_3, instead of a regular triangulation 2007-06-14 09:32:02 +00:00
Laurent Rineau bf5b9efebb new implementation, polyhedron-free, of output_surface_facets_to_off 2007-06-13 22:41:51 +00:00
Laurent Rineau 87c10e9b5e Change of the step-by-step output. 2007-06-13 21:12:22 +00:00
Laurent Rineau 41a045b9be Bad hack to r5Cobustify the algorithm. Need work. 2007-06-12 14:11:57 +00:00
Laurent Rineau 4c12071ab5 Robustify Construct_weighted_circumcenter_3 as well. 2007-06-12 14:08:31 +00:00
Laurent Rineau fd97c81e8a In Surface_mesher:
- Polyhedral_oracle::initial_points_: use input points in random order,
  - Polyhedral_surface is know templated by a new tag, that can be
    "Has_no_edges" or "Has_edges", so that the edges detection and handling
    is triggered.
  - Polyhedral_oracle::is_in_volume()  now tests if the point is in the
    bounding box, before anything else. That solved several issues, when
    the point tested had very big coordinates.
In Mesh_3:
  - Mesh_criteria's size_bound is know squared in the constructor.
2007-06-10 20:50:11 +00:00
Laurent Rineau 1f471177ce push current version 2007-06-06 12:54:28 +00:00
Laurent Rineau d381828fa7 I do not know what to say... That version just work!!
I can remesh piecewise smooth surface...
2007-05-30 16:52:43 +00:00
Laurent Rineau 7f0bab55ed fix compilation errors in Mesh_3 2007-05-14 13:54:01 +00:00
Laurent Rineau 37c7266f76 Merge the branch "temporary_branch_during_trunk_freeze" back to the trunk.
Details below (thank to svnmerge).

Merged revisions 38016,38018-38083,38085-38637 via svnmerge from 
svn+ssh://lrineau@scm.gforge.inria.fr/svn/cgal/branches/temporary_branch_during_trunk_freeze/Surface_mesher

........
  r38022 | lrineau | 2007-04-10 15:11:14 +0200 (Tue, 10 Apr 2007) | 1 line
  
  no-op modifications
........
  r38023 | lrineau | 2007-04-10 15:13:06 +0200 (Tue, 10 Apr 2007) | 1 line
  
  add an intersection computation method to the polyhedral oracle: Triangle-curve
........
  r38026 | lrineau | 2007-04-10 16:14:12 +0200 (Tue, 10 Apr 2007) | 1 line
  
  use vectors instead of lists, and use the correct type Facet_circulator from C2t3
........
  r38028 | lrineau | 2007-04-10 16:18:48 +0200 (Tue, 10 Apr 2007) | 5 lines
  
  
  - Use sets or vectors instead of lists
  - Add marked edges
  - Marked edges are not removed when incident facets are removed.
    They are counted isolated, instead
........
  r38029 | lrineau | 2007-04-10 16:33:09 +0200 (Tue, 10 Apr 2007) | 2 lines
  
  typos
........
  r38306 | lrineau | 2007-04-18 17:58:24 +0200 (Wed, 18 Apr 2007) | 1 line
  
  new version, that should work, now. :-S
........
  r38327 | lrineau | 2007-04-19 03:13:46 +0200 (Thu, 19 Apr 2007) | 1 line
  
  add Edge_info into C2t3, and make the surfacic centers be cached into those edge infos
........
  r38328 | lrineau | 2007-04-19 03:36:21 +0200 (Thu, 19 Apr 2007) | 1 line
  
  forgot that part
........
  r38413 | lrineau | 2007-04-23 02:22:23 +0200 (Mon, 23 Apr 2007) | 1 line
  
  new version o Surface_mesher, with documentation.
........
  r38635 | lrineau | 2007-05-11 15:49:29 +0200 (Fri, 11 May 2007) | 1 line
  
  fix compilation
........
  r38636 | lrineau | 2007-05-11 15:49:52 +0200 (Fri, 11 May 2007) | 1 line
  
  updated documentation
........
  r38637 | lrineau | 2007-05-11 15:50:12 +0200 (Fri, 11 May 2007) | 1 line
  
  update for piecewise-smooth surfaces
........
2007-05-11 14:09:56 +00:00
Laurent Rineau 23984e220a Merged revisions 38084 via svnmerge from
svn+ssh://lrineau@scm.gforge.inria.fr/svn/cgal/branches/temporary_branch_during_trunk_freeze/Surface_mesher

........
  r38084 | lrineau | 2007-04-12 13:28:39 +0200 (Thu, 12 Apr 2007) | 4 lines
  
  Reorganization of:
    bool is_facet_on_surface(const Facet& f, Point& center);
  for better readability of the code.
........
2007-04-12 15:50:19 +00:00
Laurent Rineau 7d31a00e9f Copyright year range. 2007-04-04 10:19:50 +00:00
Laurent Rineau eefbb701ce Remove debug outputs. 2007-04-04 10:04:29 +00:00
Laurent Rineau 61e2a2ebfd - New codebase for <CGAL/Polyhedral_surface_3.h>, that uses
Polyhedron_3.
- Added "Facet neighbor(Facet f, int j) const;" in
  <CGAL/Complex_2_in_triangulation_3.h>.
- New code for output_surface_facets_to_off() in
  <CGAL/IO/Complex_2_in_triangulation_3_file_writer.h>. Now uses
  Polyhedron_3 I/O operators (maybe temporarily), and *orients the output*,
  as mush as possible, without any call to any surface oracle.
  The ordering code is adapted from reorient_faces() in TDS_2.
- Updated demo/Surface_mesher/polyhedron_remesher.cpp, so that it works.

Notes for the CGAL-3.3 release manager: 
  - Surface_mesher/demo/Surface_mesher is "dont_submitted".
  - The changes in Surface_mesher/include/CGAL/ only impact undocumented
  features of the package. Actually, maybe output_surface_facets_to_off()
  should be documented (with an adapted API) now that it orients the facets.
2007-04-04 09:52:34 +00:00
Laurent Rineau cb2e689c05 fix SVN keywords 2007-04-03 13:59:17 +00:00
Laurent Rineau bce1a7694c CGALimageIO is now a C++ library: 'extern "C"' are removed. 2007-04-02 09:50:40 +00:00
Laurent Rineau 418d827071 Remove the enum Debug_flag from Surface_mesher (conflicts with VC++ macros). 2007-03-20 14:41:50 +00:00
Laurent Rineau 9e1dd1fee9 Gray_level_image_3 objects are copy-constructed a lot of time, during the
execution of the Surface_mesher algorithm.  I do not know how to deal with
the destruction of *image. Maybe a smart pointer. We need to bench. I delay
that until somebody really need to have that memory leak fixed.
2007-03-20 14:27:13 +00:00
Laurent Rineau 814a039ead Double free => I comment the _freeImage call. 2007-03-18 21:04:42 +00:00
Laurent Rineau 73c07dece1 - add a missing destructor for Gray_level_image_3.
- add an undocumented static function print_supported_file_format()
2007-03-15 11:13:03 +00:00
Laurent Rineau a9c8fdf162 Fix warnings about unreachable "break"s. 2007-03-14 23:29:49 +00:00
Laurent Rineau e9196b3173 quick fix for a bug found by gcc-4.3 2007-03-01 10:04:27 +00:00
Laurent Rineau 035da295a4 commit several things that change only debug outputs, or the polyhedral oracle 2007-02-28 18:22:28 +00:00
Laurent Rineau 349d29a80c Fix two typos and a linker bug (extern "C"). 2007-02-16 19:18:00 +00:00
Laurent Rineau 86307ba0e2 Fix libCGALimageIO, so that <CGAL/Gray_level_image_3.h> compiles. 2007-02-16 18:59:35 +00:00
Laurent Rineau e55e35a3e0 Move ImageIO.h into src/CGALimageIO/. We need to define a licence for src/CGALimageIO! 2007-02-15 14:50:41 +00:00
Laurent Rineau 6c6cbdcb1c The commit that will break everthing:
- New library: libCGALimageIO
- make shared libraries for CORE, and Benchmark.
2007-02-02 16:10:06 +00:00
Laurent Rineau d3dca6fd3c fix ifndef/define macro names 2006-09-13 14:35:27 +00:00
Laurent Rineau 66b7d8b7f9 - massive fix of const-correctness in Surface_mesher, Mesh_3 and
Head_mesher.
  (A nice feature of C++ is that, when you need to add *one* const
   somewhere, then you have to fix const-correctness of all the World!)
2006-09-13 13:31:45 +00:00