Commit Graph

502 Commits

Author SHA1 Message Date
Sylvain Pion 4eece15fa4 - Change the default. 8192 seems to be enough. 2001-08-17 14:23:15 +00:00
Sylvain Pion ac29c0c2ae - Change conflict_flag to unsigned. 2001-08-17 13:12:36 +00:00
Sylvain Pion 225f1aa0e8 - Remove obsolete code. The conflict flag no longer interacts with the
iterator.
2001-08-17 12:57:14 +00:00
Sylvain Pion e136d73779 - DS_Container uses an allocator.
- list_pointers moved out of ds_cell, and moved to a Free_elt class,
  placeholder for a free cell.
2001-08-17 12:48:45 +00:00
Sylvain Pion e9bb7f6985 - Use an anonymous union. 2001-08-16 12:26:54 +00:00
Sylvain Pion d4d9576e12 - New function Triangulation_3<>::collinear_position() which is a cleaner
replacement of all calls to compare_[xyz].
2001-08-14 16:42:12 +00:00
Sylvain Pion dabd538f51 - Circulators don't store a TDS* anymore as it's not used.
- ds_cell_iterator removed, replaced by DS_Container::iterator.
- other ds_iterators use the one above internally, also don't derive from
  Triangulation_utils_3.
- const correctness fixes.
2001-08-14 13:01:46 +00:00
Sylvain Pion d264245525 - Remove list pointer from ds_cell, to make it more compact. 2001-08-14 12:43:04 +00:00
Sylvain Pion 78cf8c8ea6 - TDS uses DS_Container. 2001-08-14 12:39:21 +00:00
Sylvain Pion fba31a1039 - New cell container. 2001-08-14 12:26:57 +00:00
Sylvain Pion 3ed5ceecfe - Commonize code between operator=() and copy_triangulation() in
Triangulation_3.h.
- Remove useless template arguments in the copy ctor.
2001-08-13 15:19:40 +00:00
Sylvain Pion 07ffc6e11e - Use std::swap instead of temporary variables in swap(). 2001-08-13 14:32:22 +00:00
Sylvain Pion 02cd2e8de9 - ds_cell doesn't derive from Triangulation_util_3 anymore, as this wasted
memory for nothing with GCC 2.95.
2001-07-31 09:04:53 +00:00
Sylvain Pion a9d9307b0f - Cleanup traits requirement : Construct_object_3. 2001-07-23 13:44:28 +00:00
Sylvain Pion e39c99682f - Don't put the traits' function objects as data members of the
triangulations.
2001-07-20 12:07:41 +00:00
Sylvain Pion df8a0961d6 - small cell list handling cleanup. 2001-07-20 12:06:29 +00:00
Sylvain Pion a74f95fdb9 - Replace Coplanar_orientation_3 taking 4 points, by the one taking 3 points.
- Remove Collinear_3 from the traits.
2001-07-18 14:21:26 +00:00
Sylvain Pion c1a779e871 - Fix mirror_vertex() and mirror_index(). 2001-07-18 12:15:22 +00:00
Sylvain Pion a0fa2007f7 - replace delete Cell by delete_cell() in Regular. 2001-07-13 10:07:51 +00:00
Sylvain Pion e758218d3a - copy_tds() cleanups. 2001-07-13 09:36:49 +00:00
Sylvain Pion 0fcb2d8854 - Small cleanups for order_of_creation. 2001-07-13 08:11:56 +00:00
Sylvain Pion 0cb69ceece - print_cells and read_cells small cleanup. 2001-07-10 19:26:05 +00:00
Sylvain Pion e559e0bd02 - New functions : TDS.create_vertex() and TDS.delete_vertex(). 2001-07-09 19:16:59 +00:00
Monique Teillaud 27e02c22c2 copy_tds modified to preserve the order_of_creation of vertices 2001-07-06 08:29:05 +00:00
Monique Teillaud eafd7146a0 cleanup 2001-07-05 09:46:25 +00:00
Monique Teillaud 03f147798b in: std::ostream & operator<<
vertices are now output in the order of their creation
This is done to have no problem while removing vertices
in a Delaunay triangulation read from a file
2001-07-05 09:38:03 +00:00
Sylvain Pion 6d7e27f0f6 - Add a init() method to the cell base. 2001-07-03 11:27:01 +00:00
Sylvain Pion 3e73d8fe2c - _previous_cell and _next_cell are not set in the cell constructor and
destructor automatically, so we do it by hand now for the list members of
  the TDS (via init_cell_list).
- add_cell made private.
2001-07-03 09:51:10 +00:00
Sylvain Pion 43beb5f9ce Remove add_cell 2001-07-03 09:44:23 +00:00
Sylvain Pion c9e2ee96af - Use tds.create_cell() instead of new Cell + add_cell. 2001-07-03 09:43:57 +00:00
Monique Teillaud 92d48ef9b3 *** empty log message *** 2001-07-02 09:39:59 +00:00
Monique Teillaud 3af7ca32ad print_cells and read_cells member functions of the tds 2001-06-29 12:48:16 +00:00
Sylvain Pion 12bba78be8 - Add new typedefs. 2001-06-22 09:17:22 +00:00
Monique Teillaud 9fc7da46a6 cosmetic changes 2001-06-21 19:39:11 +00:00
Monique Teillaud 43b93b29f5 auteurs verifies et mis a jour, entetes uniformisees 2001-06-21 18:03:45 +00:00
Monique Teillaud 5512f0e47f dual 2001-06-21 15:09:33 +00:00
Sylvain Pion def9164058 - Remove obsolete headers. 2001-06-21 13:38:29 +00:00
Monique Teillaud 2600f11b35 dual of cells and facets added 2001-06-21 13:30:59 +00:00
Monique Teillaud eb0ac8bd89 _3 removed in the names of the contruction function objects 2001-06-21 13:30:30 +00:00
Sylvain Pion 0378cb030b - Use correct standard headers. 2001-06-20 18:56:56 +00:00
Monique Teillaud c9b9baee45 missing preconditions added in insert_conflict 2001-06-20 10:15:54 +00:00
Monique Teillaud 3ab6e40ad8 missing #include <CGAL/basic.h> added 2001-06-20 09:20:32 +00:00
Monique Teillaud 8cb7425a05 cut line > 80 char 2001-06-19 14:53:04 +00:00
Andreas Fabri c5173a44ad undo of the previous change and simplification of the signature of clear_cells_only 2001-06-19 14:36:22 +00:00
Andreas Fabri d1f2c4fdb6 put body of clear_cells only in the class definition.
Otherwise it does not compile on Borland
2001-06-19 13:19:23 +00:00
Monique Teillaud 5bd678a5a9 default template parameters 2001-06-18 20:52:12 +00:00
Sylvain Pion 311ba3db9a - Remove a "new Cell" in Triangulation_3.
- Privatize a few member functions of TDS.
2001-06-15 14:06:40 +00:00
Sylvain Pion 3a5630d3af - Add short names for Triangulation_hierarchy_vertex_base_3 and
Triangulation_hierarchy_3 .
2001-06-14 14:01:06 +00:00
Sylvain Pion ad2c4d0638 - Remove warning from last change. 2001-06-14 09:22:41 +00:00
Sylvain Pion 929360a714 - Change prototype of tds::clear_cells_only() to avoid unnecessary vector
copy.
2001-06-13 13:59:25 +00:00
Sylvain Pion 5f947ebea9 - Cleanup vertex_3 and cell_3.
- Move #include <...short_names> before all the others.
2001-06-07 16:54:21 +00:00
Sylvain Pion b1a71bb0ab - Add missing typename for MipsPro. 2001-06-05 07:36:50 +00:00
Sylvain Pion 169c9e1399 - Add a warning when using deprecated functions. 2001-06-01 08:29:10 +00:00
Sylvain Pion 7cf39e572c - preconditions(is_vertex()) changed to expensive. 2001-06-01 08:14:16 +00:00
Sylvain Pion 31e8679975 - Use std::vector instead of std::list, with a reserved size : 7% speed up. 2001-05-31 17:10:39 +00:00
Sylvain Pion 5a93ae7d93 - Remove useless constructors.
- Add const to info().
- Formatting.
2001-05-31 16:06:45 +00:00
Sylvain Pion c893dab239 - Use Vertex_handle instead of Vertex * for the remove.
- Some better formatting.
2001-05-31 15:49:13 +00:00
Sylvain Pion 8e8baf7d3f - New short name :
#define Delaunay_remove_tds_halfedge_compare_3_2    DRthc32
2001-05-31 14:07:45 +00:00
Sylvain Pion f3e1b63ce5 - Remove traces of geometry in Delaunay_remove_tds. 2001-05-31 13:49:50 +00:00
Sylvain Pion 58edae48ab - Cleanup. 2001-05-31 08:50:04 +00:00
Sylvain Pion 5d9005da5c - Change function order to try to fix BCC. 2001-05-31 07:09:22 +00:00
Sylvain Pion 0cb7a829f4 - One more VC++ for()-scope workaround. 2001-05-31 06:34:41 +00:00
Monique Teillaud 9832d7d7e0 cleanup 2001-05-30 13:50:25 +00:00
Sylvain Pion 516872a46e - Hierarchy traits now uses Compare_distance_3. 2001-05-29 16:45:00 +00:00
Monique Teillaud 3bbf5ac20b useless on_unbounded_side in fill_hole cancelled 2001-05-29 09:14:42 +00:00
Sylvain Pion e6fb58bb8a VC++ fix 2001-05-28 12:45:36 +00:00
Sylvain Pion 392ff43801 - Move Triangulation_hierarchy_vertex_base_3<> in its own file. 2001-05-22 14:40:07 +00:00
Sylvain Pion 7671a475c2 - Fix lines too long.
- Remove obsolete and commented code.
2001-05-22 12:14:07 +00:00
Sylvain Pion e0cfd7d1ad - Better identifiable macro names. 2001-05-22 09:50:43 +00:00
Sylvain Pion a28b7b0db4 - Add new classes defined for the remove. 2001-05-22 07:05:58 +00:00
Sylvain Pion 33e8bcbac5 - Fix memory leak. 2001-05-21 20:36:34 +00:00
Sylvain Pion 37162f7184 - Regular works again 2001-05-18 18:04:09 +00:00
Monique Teillaud 825fc80a33 - all interfaces of tds.insertxxx() changed 2001-05-18 14:35:44 +00:00
Monique Teillaud 899790fc95 petit bug fix is_edge 2001-05-18 07:23:10 +00:00
Sylvain Pion 9bc6ef6b73 - Use the Delaunay test-suite for testing the hierarchy.
- remove() returns a bool.
2001-05-18 07:14:10 +00:00
Monique Teillaud f6dec9dc2f menage 2001-05-17 17:02:38 +00:00
Monique Teillaud 3858090f8f bug in is_edge() fixed 2001-05-17 15:10:30 +00:00
Sylvain Pion de4518e22c - Delete bad code. 2001-05-17 09:33:04 +00:00
Sylvain Pion 2d4e762673 - Fix BCC/KCC warning. 2001-05-17 08:53:34 +00:00
Sylvain Pion 6bcef5d831 - Formatting 2001-05-16 16:01:16 +00:00
Monique Teillaud 1e6f40a26a REMOVE IS WORKING !!!!!!!! 2001-05-16 12:42:55 +00:00
Sylvain Pion 8e7cf2ae3a - for() scope VC++ bug. 2001-05-05 07:38:49 +00:00
Sylvain Pion a858164b51 - Added push_back() member functions. 2001-05-04 11:19:49 +00:00
Sylvain Pion acca415438 - Remove old code. 2001-05-04 07:28:21 +00:00
Sylvain Pion 7058a2346c - Mega cleanup and speedup. 2001-05-03 16:06:29 +00:00
Sylvain Pion 2fefbd3605 - Mark the vertices which belong to cells in conflict by set_cell(NULL),
which allows to get rid of calling incident_vertices() which is costly.
  This brings a 30% improvement :)
2001-05-03 13:07:08 +00:00
Sylvain Pion 47f4f046a6 - Use POSITIVE instead of LEFTTURN when dealing with 3D orientation. 2001-05-02 15:25:10 +00:00
Sylvain Pion 409f4e3892 - Remove done TODO item. 2001-05-02 15:24:22 +00:00
Sylvain Pion dd7c3f957e - Use the tds.insert_conflict() to remove some duplicated insert() code. 2001-04-30 16:47:47 +00:00
Sylvain Pion 712e5e95e8 - Add comment.
- Update to the new insert().
2001-04-27 16:59:26 +00:00
Sylvain Pion e2b2ece2f9 - Merge insert(p) and insert(p,start) using default arguments. 2001-04-27 16:27:32 +00:00
Sylvain Pion ad1407c17b - Update the traits. Don't use a vector. 2001-04-27 16:12:45 +00:00
Sylvain Pion fc36d2d921 - Cleanup. 2001-04-27 14:17:55 +00:00
Sylvain Pion 801340724e - Merge the two insert() functions in one, using a default argument for the
starting cell.
2001-04-25 09:06:31 +00:00
Sylvain Pion 4e455d2917 - Apply the full Delaunay test-suite to the hierarchy, this showed some bugs. 2001-04-25 08:50:50 +00:00
Andreas Fabri a8b0d9d504 cleaned up version 2001-04-19 16:42:47 +00:00
Sylvain Pion 894c5a2848 - Update for the updated simple kernels. 2001-04-19 14:46:02 +00:00
Sylvain Pion 41104162d3 - VC++ for-scope bug. 2001-04-19 11:03:56 +00:00
Sylvain Pion 69796738a0 - VC++ bugs. 2001-04-19 11:01:29 +00:00
Sylvain Pion 594b75d089 - Fix dim==1 case too. 2001-04-19 10:59:52 +00:00
Sylvain Pion bd170c4212 - Fix bug introduced by last change when dimension() < 3. 2001-04-19 09:28:17 +00:00
Andreas Fabri 2f20e80c75 Added comments 2001-04-13 13:07:44 +00:00
Sylvain Pion 25b606c052 - locate() interface changes to match the 2D case wrt the default start.
- minor hierarchy speed up.
2001-04-13 12:20:52 +00:00
Sylvain Pion 65bb5da372 - lines too long 2001-04-11 11:56:23 +00:00
Sylvain Pion a62c4bf51b - Workaround VC++ for-scope bug 2001-04-11 11:56:05 +00:00
Sylvain Pion 393bfe570c add missing header 2001-04-11 11:55:36 +00:00
Monique Teillaud 4ca2fb1bed bug fix in the constructors with start argument 2001-04-05 09:26:21 +00:00
Sylvain Pion 8f8d1bd92f - Move template member in the class body for VC++. 2001-04-04 16:07:30 +00:00
Sylvain Pion c3cdbc1c87 - Add NDEBUG. 2001-04-04 16:07:07 +00:00
Monique Teillaud 6bf122e7d0 long lines cut 2001-04-04 15:52:20 +00:00
Sylvain Pion 5e51f0a73e - Cleanup. 2001-03-21 19:48:31 +00:00
Sylvain Pion 70e29bbbcc - Add a free cell list in order to speed up cell allocation. 2001-03-20 16:56:31 +00:00
Sylvain Pion d0acc47030 - New insert_conflict() in the TDS.
- Use it in Delaunay.
2001-03-08 13:33:55 +00:00
Sylvain Pion fbb8fe5467 - Missing typenames. 2001-03-08 13:27:15 +00:00
Sylvain Pion 53050abea1 - Forgot something in last change. 2001-03-08 12:29:50 +00:00
Sylvain Pion aab902279e - Added const.
- New test in is_valid().
- Call is_valid() in insert() and remove() in an expensive_asssertion().
2001-03-06 12:54:45 +00:00
Sylvain Pion a676f51cdb - Remove useless includes of <CGAL/triple.h>. 2001-02-22 10:59:27 +00:00
Sylvain Pion 7f32b819ee - Use the kernel's function object for the cross product. 2001-02-22 10:25:49 +00:00
Sylvain Pion 54cb1d838b - Cleanup. 2001-02-20 15:32:21 +00:00
Sylvain Pion d3a288bbb1 - Test if start==NULL before passing it to locate()... 2001-02-19 17:08:46 +00:00
Sylvain Pion 2f5007dd4f - Missing typenames and typedef. 2001-02-19 14:59:08 +00:00
Sylvain Pion d52800b180 - Follow-up on the Borland workaround. 2001-02-19 10:44:12 +00:00
Andreas Fabri d8d1657bfc - Remove "const" to please Borland. 2001-02-15 13:42:29 +00:00
Andreas Fabri 5149520fd1 - Fixes for Borland. 2001-02-15 13:31:23 +00:00
Sylvain Pion afa2338689 - Remove some old style casts. 2001-02-14 16:54:15 +00:00
Sylvain Pion dd471c2601 - Formatting. 2001-02-13 18:45:09 +00:00
Sylvain Pion 152c9d3597 - Triangulation_hierarchy<>. Initial version that "only" compiles. 2001-02-13 18:12:50 +00:00
Sylvain Pion 60646388ac - New functionality required by the hierarchy : Les_distance_to_point_3. 2001-02-13 18:10:56 +00:00
Sylvain Pion e6575265a8 - Add typedef value_type. 2001-02-13 18:10:31 +00:00
Sylvain Pion b9710d2175 - Make functions static.
- Remove some old casts.
2001-02-09 17:09:28 +00:00
Sylvain Pion d73961f43b - it++ -> ++it for efficiency. 2001-02-09 16:41:05 +00:00
Sylvain Pion 45b0c0d7f0 - Cleanup. 2001-02-09 16:29:44 +00:00
Sylvain Pion 70607c02ea - Remove temporary #ifdef SYL...
- Formatting.
2001-02-08 16:02:06 +00:00
Sylvain Pion 2c06bbefa5 - Use std::distance(). 2001-02-08 15:37:34 +00:00
Sylvain Pion c41a382d3f - Make "int i" in for() scope only. 2001-02-08 13:10:34 +00:00
Sylvain Pion 59650f5b73 - Remove useless std::less<>. 2001-02-08 12:59:33 +00:00
Sylvain Pion 66c1080d68 - Re-add default ctor. 2001-02-08 12:43:37 +00:00
Sylvain Pion 1d0b3f3ed6 - flags -> in_conflict_flag.
- formatting.
- "unsed variable" warnings.
2001-02-08 12:42:06 +00:00
Andreas Fabri 3201f97d92 look at all incident edges and not only at those that
are at the same time cospheric;
fixed a bug there. That's why it was commented out
2001-01-25 12:20:09 +00:00
Andreas Fabri 893f9ef06d Made some simplifications as discussed at code review with Monique 2001-01-23 13:55:04 +00:00
Andreas Fabri a2be3eba69 cleanup 2001-01-22 08:35:16 +00:00
Andreas Fabri a8551dc4c6 needed for Delaunay_3::remove_vertex
written in the STL way
2001-01-19 11:58:34 +00:00
Andreas Fabri 65f149d9b7 This class is needed in the ear-filling algorithm 2001-01-19 09:29:43 +00:00
Andreas Fabri 9f767c2f05 Added the algorithm that fills the hole with ears 2001-01-19 09:26:36 +00:00
Monique Teillaud e53e200ff6 set_flags and get_flags private 2001-01-18 14:56:03 +00:00
Andreas Fabri 97fe309b52 added dummy_for_windows to cheat the MSV++ compiler 2001-01-09 16:26:06 +00:00
Andreas Fabri baa46de95a removed Point_2 include statement and typedef as the coplanar_.. predicates
are no longer in the traits
2001-01-09 10:48:33 +00:00
Sylvain Pion 3e84840766 - flags belongs to ds_cell, not cell_base. 2001-01-07 00:15:49 +00:00
Sylvain Pion e249619e14 - Use #ifdef SYL for further incompatible optimisations.
- clear() cleanup...
- various formatting.
2001-01-01 21:48:48 +00:00
Sylvain Pion 520d68b04a - Formatting. 2001-01-01 20:37:44 +00:00