Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3


Chronological Thread 
  • From: deeFisher <>
  • To:
  • Subject: Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3
  • Date: Mon, 27 Oct 2014 08:47:09 -0700 (PDT)

Thanks for the file. It seems to have lost some detail though (attached
image).

so from my code can you work out how i have been duplicating my edges?

void operator()(HDS& hds)
{
typedef typename HDS::Vertex Vertex;
typedef typename Vertex::Point Point;

// Postcondition: hds is a valid polyhedral surface.
CGAL::Polyhedron_incremental_builder_3<HDS> B(hds, true);
B.begin_surface(v, f);

for (int i = 0; i < (int)coords.size(); i += 3){
B.add_vertex(Point(coords[i + 0], coords[i + 1],
coords[i + 2]));
}


// add the polyhedron triangles
for (static int i = 0; i<(f * 3); i += 3){
B.begin_facet();
B.add_vertex_to_facet(i);
B.add_vertex_to_facet(i+1);
B.add_vertex_to_facet(i+2);
B.end_facet();
}

// finish up the surface
B.end_surface();


}
<http://cgal-discuss.949826.n4.nabble.com/file/n4660022/difference.png>



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Can-t-convert-polyhedron-3-to-nef-polyehdron-3-tp4660003p4660022.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page