Subject: CGAL users discussion list
List archive
- From: <>
- To: cgal <>
- Subject: RE: [cgal-discuss] Triangulation to Polyhedron
- Date: Wed, 19 Nov 2008 20:09:45 +0000
- Importance: Normal
I have a Delaunay_triangulation_3 and I want to convert it into a Polyhedron_3 data structure. Ideally, I would only convert the convex hull (with no interior edges) of the triangulation to the polyhedron. I sent another mail about this problem, but I sent a new one as this was a more specific question. Looks like I didn't take a good look at the convex hull example I have here: CGAL::convex_hull_3(points.begin(), points.end(), ch_object); CGAL::assign(polyhedron, ch_object); I was hoping I could assign the entire triangulation to a polyhedron, and then use the polyhedron structure to delete interior edges? > Date: Wed, 19 Nov 2008 20:59:15 +0100 > From: > To: > Subject: Re: [cgal-discuss] Triangulation to Polyhedron > > wrote: > > Hi, > > > > How do you convert a Delaunay_triangulation_3 object to a Polyhedron_3 > > object? > > > > To me it is already not clear what of the Delaunay triangulation you > want to convert. The convex hull? > > > I tried to use CGAL::assign(), but it didn't work. > > > > assign operates on CGAL::Object which is a wrapper for whatsover type T > and what assign does is unpacking whatever is in the object if the > type of what is inside is identical to what you want to assign to. > > T t; > > Object o = make_object(t); > > Q q; > T t2; > > bool b1 = assign(q,o); // b1 == false because typeof(t) != typeof(t) > bool b2 = assign(t2, o); // b2 == true because typeof(t) == typeof(t2) > > All these words just to tell you that assign is not a any-to-any conversion > tool. > > andreas > > > > > > Thank you. > > > > ------------------------------------------------------------------------ > > Alle fun stuff van Messenger nu verzameld op één coole site! Windows > > Live Messenger <http://www.messengerbillboard.be/nl> > > -- > You are currently subscribed to cgal-discuss. > To unsubscribe or access the archives, go to > https://lists-sop.inria.fr/wws/info/cgal-discuss Weer helemaal in het nieuw! Hotmail… |
- [cgal-discuss] Triangulation to Polyhedron, pgoeleven, 11/19/2008
- Re: [cgal-discuss] Triangulation to Polyhedron, Andreas Fabri, 11/19/2008
- RE: [cgal-discuss] Triangulation to Polyhedron, pgoeleven, 11/19/2008
- Re: [cgal-discuss] Triangulation to Polyhedron, Shi Yan, 11/19/2008
- RE: [cgal-discuss] Triangulation to Polyhedron, pgoeleven, 11/20/2008
- Re: [cgal-discuss] Triangulation to Polyhedron, Andreas Fabri, 11/19/2008
Archive powered by MHonArc 2.6.16.