Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3
- Date: Tue, 28 Oct 2014 08:23:46 +0100
- Organization: GeometryFactory
On 10/27/2014 04:47 PM, deeFisher wrote:
Thanks for the file. It seems to have lost some detail though (attached
image).
The difference with your input file is that I only merge identical points and edges.
so from my code can you work out how i have been duplicating my edges?
I don't know. vertices and edges are already duplicated when you
construct the polyhedron. I don't think the pb has anything to do
with CGAL.
Sebastien.
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.
- [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/24/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/28/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/28/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/29/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, deeFisher, 10/27/2014
- Re: [cgal-discuss] Can't convert polyhedron_3 to nef_polyehdron_3, Sebastien Loriot (GeometryFactory), 10/27/2014
Archive powered by MHonArc 2.6.18.