Commit Graph

194 Commits

Author SHA1 Message Date
Sylvain Pion 9138993d59 - const correcteness in remove() and co.
- New function : bool coplanar(p, q, r, s);
2001-09-18 17:57:28 +00:00
Sylvain Pion 26f53db953 - Finite_vertex_iterator -> Finite_vertices_iterator, idem for cell, facet and
edge.
2001-09-17 16:58:32 +00:00
Sylvain Pion 9e24f5a7d1 - SunPro fixes. 2001-09-17 11:41:56 +00:00
Sylvain Pion 4bf48624b3 - Replace &* by ->handle(). 2001-09-13 17:14:03 +00:00
Sylvain Pion 28f7114c42 - Compare_distance_3 is now required by Delaunay (moved from Hierarchy).
- Compare_[xyz]_3 and Equal_3 are replaced by Compare_xyz_3.
2001-09-13 16:35:49 +00:00
Sylvain Pion 3a879d286c - Split *_iterators into Finite_*_iterators. 2001-09-07 19:06:33 +00:00
Sylvain Pion dad4705287 - TDS functions now use handles instead of pointers.
- Triangulation::Vertex == TDS::Vertex.  Idem for Cell.
- Handles can't be constructed from iterators/circulators : &* is needed.
- More simplifications.
2001-09-07 15:53:31 +00:00
Sylvain Pion fdad40eb7f - insert_conflict() now increases the number of vertices. 2001-09-03 16:21:26 +00:00
Sylvain Pion 18e7f467cd - Internal classes now templated either by Tds or Tr so they are more easily
reusable.
2001-08-31 17:45:50 +00:00
Sylvain Pion dfeb59e321 - Remove deprecated code. 2001-08-31 14:40:30 +00:00
Sylvain Pion 84cc95f90a - Move find_conflict() and insert_conflict() from the TDS to Triangulation.
- Rewrite TDS::create_star to TDS::star_hole_[23].
- New TDS internal functions change_orientation(Cell *) and
  set_adjacency(Cell *a, Cell *b, int a, int b).
2001-08-31 13:00:20 +00:00
Sylvain Pion 744fed8117 - Removes instantiations of handle2pointer().
- Mark test_dim_down() const, and optimize it a bit by avoiding point copies.
2001-08-28 14:31:40 +00:00
Sylvain Pion 9a3a39bc2e - number_of_cells() can use the one if the TDS which is faster. 2001-08-27 17:19:01 +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 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 e39c99682f - Don't put the traits' function objects as data members of the
triangulations.
2001-07-20 12:07:41 +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 0fcb2d8854 - Small cleanups for order_of_creation. 2001-07-13 08:11:56 +00:00
Sylvain Pion e559e0bd02 - New functions : TDS.create_vertex() and TDS.delete_vertex(). 2001-07-09 19:16:59 +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 43beb5f9ce Remove add_cell 2001-07-03 09:44:23 +00:00
Monique Teillaud 3af7ca32ad print_cells and read_cells member functions of the tds 2001-06-29 12:48:16 +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 eb0ac8bd89 _3 removed in the names of the contruction function objects 2001-06-21 13:30:30 +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 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
Monique Teillaud 825fc80a33 - all interfaces of tds.insertxxx() changed 2001-05-18 14:35:44 +00:00
Sylvain Pion a858164b51 - Added push_back() member functions. 2001-05-04 11:19:49 +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 dd7c3f957e - Use the tds.insert_conflict() to remove some duplicated insert() code. 2001-04-30 16:47:47 +00:00
Sylvain Pion ad1407c17b - Update the traits. Don't use a vector. 2001-04-27 16:12:45 +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 41104162d3 - VC++ for-scope bug. 2001-04-19 11:03:56 +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 c3cdbc1c87 - Add NDEBUG. 2001-04-04 16:07:07 +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 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 e6575265a8 - Add typedef value_type. 2001-02-13 18:10:31 +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 2c06bbefa5 - Use std::distance(). 2001-02-08 15:37:34 +00:00
Sylvain Pion 59650f5b73 - Remove useless std::less<>. 2001-02-08 12:59:33 +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 70a4d1688b - Suppress second parameter to std::set<> since it's the default. 2000-12-31 20:08:24 +00:00
Sylvain Pion f88140a857 - Remove superfluous "inline". 2000-12-30 22:27:27 +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 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 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 251399a039 - Small optimization. 2000-12-08 16:38:55 +00:00
Sylvain Pion db399a9cec - minor optimization. 2000-12-06 13:33:17 +00:00
Sylvain Pion 15a2326798 changed typedefs of segment, triangle, tetrahedron 2000-12-06 12:30:08 +00:00
Sylvain Pion a93d1e7fe5 Changed typedef .. Point 2000-12-06 09:30:44 +00:00
Sylvain Pion ea20b2de63 Removed unreachable code 2000-12-05 19:01:20 +00:00
Sylvain Pion 0c9abf8576 - GCC 2.96/2.97 issues : "or" is a key-word, and "class" is required for
friend.
2000-10-17 16:00:04 +00:00
Monique Teillaud 7fba8a90fb parameter dummy_for_windows added in the old versions of
Triangulation_3:: incident_vertices et al (kept for compatibility
with previous versions).
2000-08-07 15:26:23 +00:00
Monique Teillaud 82f45b4fb9 - * replaced by _handle in incident_vertices and incindet_cells for a vertex
- is_edge and other similar methods implemented
- locate accepts an infinite cell for argument start
2000-08-02 08:59:07 +00:00
Monique Teillaud ed97df642a added :
are_equal and has_vertex for facets
test_dim_down
2000-07-13 22:00:44 +00:00
Monique Teillaud 8b7ca88fc5 appel a rand_get_int supprime
remplace par indice aleatoire calcules par locate
2000-04-05 08:14:27 +00:00
Monique Teillaud 4f87d22ce8 useless parameter removed in read_cell 2000-02-11 14:50:31 +00:00
Monique Teillaud ccfc340682 modifs Geert-Jan pour -pedantic 2000-02-04 13:47:03 +00:00
Monique Teillaud 3bee33627d changes for Borland
from Dima:
	friend declarations of operator>>
   	only work if this operator is declared before the friend declaration.
1999-12-02 14:58:20 +00:00
Monique Teillaud 2d27ba4a53 Function is_valid(cell) added in Delaunay (had been forgotten...) 1999-11-16 14:46:00 +00:00
Monique Teillaud 8f77bc72a8 a second class Triangulation_vertex_base_pointer_3
in Triangulation_vertex_base_3.h, it stores a point*
instead of a point

modifications in triangulation input stream to use the input stream of
vertex instead of the input of point. this is cleaner and necessary to
allow the use of both possible vertex_base
1999-10-29 15:00:39 +00:00
Monique Teillaud cc99b87ee0 *** empty log message *** 1999-10-28 13:48:36 +00:00
Monique Teillaud afb0722a59 enleve : additions de booleens supposant true==1 1999-10-28 11:11:21 +00:00
Monique Teillaud 8752565930 code "purify"-ed 1999-10-28 09:27:43 +00:00
Monique Teillaud 43456ab3b8 CGAL_CFG_NO_MEMBER_TEMPLATES vire
+ menage dans les arguments non utilises (is_valid, etc)
1999-10-25 12:54:36 +00:00
Monique Teillaud 0824c62a61 nextposaround renamed to next_around_edge 1999-10-18 13:43:44 +00:00
Monique Teillaud 8a04c69ab1 short names (needed for MSVC) 1999-10-14 07:59:58 +00:00
Monique Teillaud 52dd5bf797 flips added 1999-10-13 12:51:43 +00:00
Monique Teillaud 5429079271 cleaning 1999-09-22 15:09:27 +00:00
Monique Teillaud a7c2244d59 Facet iterators implemented 1999-09-22 13:39:48 +00:00
Monique Teillaud 2bf47b9f13 added : circulators around edge defined by cell,int,int
internal representation of circulators modified
1999-09-21 09:37:41 +00:00
Monique Teillaud 6a6555d8ab std::make_pair 1999-09-17 11:17:31 +00:00
Monique Teillaud d1e2f14971 discovered an illegal comparison between points (not using the traits class)
in Triangulation_3
problem with typenames in  Regular_triangulation_euclidean_traits_3
equal(p,q) changed in Triangulation_geom_traits_3.h
1999-09-16 13:09:06 +00:00
Monique Teillaud c4c93a5026 fixes (std::, typename, etc) 1999-09-08 09:34:35 +00:00
Monique Teillaud 309042e236 changes in Dagstuhl for MSVC++
- small details (std missing for less,...)
- power_test in Regular_triangulation_euclidean_traits_3.h reorganized
- iterator_base removed in Triangulation_ds_iterators_3.h
1999-09-01 14:35:29 +00:00
Monique Teillaud 16cf96a57a small change in the comment of locate() 1999-07-22 13:40:55 +00:00
Monique Teillaud 1409a7c706 cleaning 1999-07-19 14:53:59 +00:00
Monique Teillaud 532b3eb167 cleaning +
bug fix in Triangulation_3::side_of_edge (infinite edge)
1999-07-16 11:54:23 +00:00
Monique Teillaud a59d28440c The constructors of the cells do not insert the cell in the
triangulation any more. Instead the triangulation has functions
to add cells.
1999-07-13 12:37:45 +00:00
Monique Teillaud ff798de847 cleaning... 1999-07-12 14:22:29 +00:00
Monique Teillaud 171afd2070 methods defined outside classes to compile with -O2 1999-06-30 07:31:47 +00:00
Monique Teillaud a22deaf4ff Bugs fixed in
~Triangulation_3()
	operator=
	copy_triangulation
Too much cleaning...
1999-06-24 11:59:33 +00:00
Monique Teillaud ab770d4eb7 shortening lines > 80 characters... 1999-06-23 13:28:51 +00:00
Monique Teillaud 5b41b37dac insert_outside_affine_hull in tds --> insert_increase_dimension 1999-06-23 10:07:20 +00:00
Monique Teillaud 9b65769615 missing std:: added 1999-06-22 14:02:18 +00:00
Monique Teillaud e39d3af96f private members become protected
--> Delaunay not included, not friend class
1999-06-21 15:10:38 +00:00
Monique Teillaud 2a5458f8ab Removing #include ... short_names 1999-06-16 08:39:11 +00:00
Monique Teillaud 54b87ff294 NAMESPACES first round 1999-05-10 14:20:44 +00:00