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: Mon, 27 Oct 2014 14:22:14 +0100
- Organization: GeometryFactory
Do you have the OFF file? you can sent it privately if you don't
want to share it on the list.
Sebastien.
On 10/27/2014 01:42 PM, deeFisher wrote:
Hi Sebastien,
here is the code for the model. I've created a polyhedron.isValid() log
which i've also included (just the beginning and end of the log file) below.
its saying every other halfedge is a border halfedge even though if i export
my polyhedron as .off it exports a single shell mesh with no problems...
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();
}
//------------------------------------------
log file:
begin CGAL::Polyhedron_3<...>::is_valid( verb=true, level = 1):
begin CGAL::HalfedgeDS_const_decorator<HDS>::is_valid( verb=true, level =
4):
halfedge 0
halfedge 1
is border halfedge
halfedge 2
halfedge 3
is border halfedge
halfedge 4
halfedge 5
is border halfedge
halfedge 6
halfedge 7
is border halfedge
...
halfedge 674288
halfedge 674289
is border halfedge
halfedge 674290
halfedge 674291
is border halfedge
summe border halfedges (2*nb) = 674292
counting border halfedges failed.
level 4: normalized_border_is_valid( verbose = true)
end of CGAL::HalfedgeDS_const_decorator<HDS>::is_valid(): structure is NOT
VALID.
counting halfedges failed.
end of CGAL::Polyhedron_3<...>::is_valid(): structure is NOT VALID.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Can-t-convert-polyhedron-3-to-nef-polyehdron-3-tp4660003p4660016.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.