Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Convert Triangulation_2 object to Polyhedron_3

Subject: CGAL users discussion list

List archive

[cgal-discuss] Convert Triangulation_2 object to Polyhedron_3


Chronological Thread 
  • From: Costas Tsirogiannis <>
  • To:
  • Subject: [cgal-discuss] Convert Triangulation_2 object to Polyhedron_3
  • Date: Wed, 14 Apr 2010 04:31:30 -0800 (PST)


I am trying to find a "fast" way to do the following:

Given an object t of type Triangulation_2 create a Polyhedron_3 which has
the same vertex and edge set
as t.

Looking at the BGL interface for CGAL, I was thinking to use either the
copy_graph command with a custom
VertexCopier function or use the Boost DFS algorithm on the Triangulation
while handling the addition of edges
on the Polyhedron with a customized visitor. But I'm not sure if this is
supposed to work since there doesn't
seem to be some way to create a vertex in your target graph (here: the
Polyhedron) so that you can set any of
the member values of this vertex (e.g. to enter the coordinates of the 3D
point associated with this vertex ).



--
View this message in context:
http://n4.nabble.com/Convert-Triangulation-2-object-to-Polyhedron-3-tp1839719p1839719.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page