Subject: CGAL users discussion list
List archive
- From: Monique Teillaud <>
- To:
- Subject: Re: [cgal-discuss] Construct Triangulation_2 from existing one
- Date: Tue, 01 Apr 2014 18:22:58 +0200
Le 01/04/14 17:53, Zohar a écrit :
Hi,
This question was asked before several times, and the answer is surprisingly
not possible. I wanted to verify that.
Let's say I have an existing triangulation (e.g. .off), and I want to load
it into Triangulation_2. My objective is to take advantage of the methods in
Triangulation_2, such as point location (which can be done with AABB tree as
well).
There is an overloaded operator>>, which reads only points, as far as I can
see, and ignores the connectivity.
Hi
it is not very precisely documented, but it _does_ take connectivity into account, otherwise it would be useless even for a "native" CGAL triangulation...
the documentation of the 3d case is a bit more verbose:
http://doc.cgal.org/latest/Triangulation_3/classCGAL_1_1Triangulation__3.html#ab94699177389820a3fb07e28961b2989
unless I am mistaken the 2d case is similar
--
Monique Teillaud
http://www.inria.fr/sophia/members/Monique.Teillaud/
INRIA Sophia Antipolis - Méditerranée
Institut National de Recherche en Informatique et Automatique
So the only way, I can see, is to construct a constrained triangulation
(constraining the desired connectivity), and deleting redundant faces.
Is this correct? If it is, please consider making the Triangulation_2
construction more versatile.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Construct-Triangulation-2-from-existing-one-tp4659047.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Construct Triangulation_2 from existing one, Zohar, 04/01/2014
- Re: [cgal-discuss] Construct Triangulation_2 from existing one, Monique Teillaud, 04/01/2014
- Re: [cgal-discuss] Construct Triangulation_2 from existing one, Zohar, 04/01/2014
- Re: [cgal-discuss] Construct Triangulation_2 from existing one, Monique Teillaud, 04/01/2014
Archive powered by MHonArc 2.6.18.