Commit Graph

370 Commits

Author SHA1 Message Date
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
Sylvain Pion ba207da12a - Formatting.
- Added the find() -> get_flags() optimization in commentary.
2001-01-01 15:29:08 +00:00
Sylvain Pion 56ceb27c9e - Revert patch about "prev" argument to find_conflicts_3() since there will
be a better way to do it.
- Added in commentary, the better solution which replaces the various find()
  calls by get_flags().
2001-01-01 15:26:38 +00:00
Sylvain Pion c958f69b14 - Added "int flags;".
Unused at the moment, but it's faster due to cache effects, so...
2001-01-01 02:47:18 +00:00
Sylvain Pion e2f0eff83c - Minor optimization. 2001-01-01 01:52:49 +00:00
Sylvain Pion 31de30c710 - Minor optimization of find_conflicts_3(). 2001-01-01 00:53:26 +00:00
Sylvain Pion e2d8fd7adb - std::set<void *> replaced by a typedef : Conflict_set to later allow to
change it to hash_set<>.
- Added "const" to a few functions taking this argument.
2000-12-31 22:31:47 +00:00
Sylvain Pion b9b7ba3a31 - "g++ -Winline" tells us it can't inline rand_4() because it has static
variables, so we make them static variables of the class instead.
2000-12-31 22:14:25 +00:00
Sylvain Pion 70a4d1688b - Suppress second parameter to std::set<> since it's the default. 2000-12-31 20:08:24 +00:00
Sylvain Pion 79233eaec8 - find_conflicts_[23]() optimization. 2000-12-31 19:21:45 +00:00
Sylvain Pion 1bcbd1d26d - violates() optimization (replace copies of points by pointers). 2000-12-31 17:43:39 +00:00
Sylvain Pion f88140a857 - Remove superfluous "inline". 2000-12-30 22:27:27 +00:00
Andreas Fabri 1ff466bb6e undo added so that the remove fails gracefully, instead of invalidating the triangulation 2000-12-22 15:07:22 +00:00
Andreas Fabri 4e2ce7ad9e Added a local function that will one day be in the kernel 2000-12-22 15:05:21 +00:00
Andreas Fabri 5d1542bb54 Aded type Point for backward compatibility 2000-12-22 14:21:46 +00:00
Andreas Fabri 9064c291e1 made function operator calls const& 2000-12-22 12:47:14 +00:00
Andreas Fabri 8e0c5205f8 function objects are applied directly and not from within a helper function 2000-12-22 12:46:09 +00:00
Andreas Fabri dd29b5131b kernel traits 2000-12-21 12:51:25 +00:00
Andreas Fabri e6edbd98ec kernel traits changes 2000-12-21 12:44:58 +00:00
Andreas Fabri 06981b0b37 oops Too many lines got commented 2000-12-21 11:44:11 +00:00
Andreas Fabri b135b5fda1 Changed access control to protected so that derived classes (e.g. Delaunay_3) can add cells 2000-12-20 16:12:39 +00:00
Andreas Fabri a92213b92e Changed access control to protected so that derived classes as Delaunay triangulation can also ad cells 2000-12-20 16:02:11 +00:00
Sylvain Pion 4cf81e92cc - cleanup. 2000-12-12 16:02:16 +00:00
Sylvain Pion c1e1a3b9e8 - cleanup. 2000-12-12 15:45:54 +00:00
Sylvain Pion 443a710fc7 - cleanup. 2000-12-12 15:36:03 +00:00
Sylvain Pion e51007cf4d - typedefs. 2000-12-12 15:18:29 +00:00
Sylvain Pion 2f95144fb1 - New typedefs. 2000-12-12 15:16:44 +00:00
Sylvain Pion 0b4a70b19c - locate() improvements. 2000-12-12 15:08:00 +00:00
Sylvain Pion 26da1b5461 - rand_4() and rand_3() new random functions. 2000-12-12 14:57:12 +00:00
Sylvain Pion 95e407f3b2 - point() returns a const ref instead of a Point. Faster. 2000-12-12 13:22:57 +00:00
Sylvain Pion 251399a039 - Small optimization. 2000-12-08 16:38:55 +00:00
Sylvain Pion 54192706b9 - Use get_new_id(). 2000-12-07 15:33:42 +00:00
Sylvain Pion db399a9cec - minor optimization. 2000-12-06 13:33:17 +00:00