Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Polyhedron_incremental_builder_3 under ABSOLUTE_INDEXING mode

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Polyhedron_incremental_builder_3 under ABSOLUTE_INDEXING mode


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Polyhedron_incremental_builder_3 under ABSOLUTE_INDEXING mode
  • Date: Fri, 15 Oct 2010 11:17:22 +0200

You can define a polyhedron with several connected components. Note that
you could not directly have access to the different components
To do this you only need to do one begin/end_surface.

I guess you simply need to translate the indices of your points by the number of already inserted points.

S.

johnzjq wrote:
Dear All,

I would like to read several solids in a .obj file to Polyhedron_3 data
structure.
Question 1: Can I use one Polyhedron_3 to record all these solids? or for
each solid, I should define its own Polyhedron_3 object?

Question 2: How to use ABSOLUTE_INDEXING mode in the incremental_builder? I
read the manual but still a little confused: "...the incremental builder
uses absolute indexing and the vertices of the old polyhedral surface can be
used in new facets." Does that mean I can use begin_surface() to start a new
surface just after the last call of end_surface()? Something like:
-------------------------------------------------------
Builder pB(hds, true);
//1
pB.begin_surface()
...
pB.end_surface()
//2
pB.begin_surface()
...
pB.end_surface()
--------------------------------------------------------
It seems the new surface overwrite the old one, isn't it?

Any ideas? Thanks in advance.

John




Archive powered by MHonArc 2.6.16.

Top of Page