Subject: CGAL users discussion list
List archive
How can I get the same facet and vertex handle after saving as .off and reloading it?
Chronological Thread
- From: "samuel kim" <>
- To: <>
- Subject: How can I get the same facet and vertex handle after saving as .off and reloading it?
- Date: Mon, 28 Apr 2008 17:15:04 +0200
- Organization: Purdue
Hello,
I am using Facet_iterator in Polyhedron, and want to get very specific
facets after some modification on the original file and save it as .off
file. When I load the modified .off file, I cannot get to the same facet.
More details are as follows,
1. read a.off file then, write source code as follows
Facet_iterator pFacet = facets_begin();
For(i=0;i<50;i++) // skip some facets
pFacet++;
Halfedge_around_facet_circulator pHalfedge;
pHalfedge = pFacet->facet_begin();
pHalfedge->prev()->vertex()->point() = Point(1.0,1.0,1.0) ; // modify
vertex
// then save this modified mesh into am.off file
2. read am.off
Facet_iterator pFacet = facets_begin();
For(i=0;i<50;i++) // skip some facets
pFacet++;
Halfedge_around_facet_circulator pHalfedge;
pHalfedge = pFacet->facet_begin();
Point& A = pHalfedge->prev()->vertex()->point()
// here the problem is that point A is not the same as (1.0,1.0,1.0)
modified at previous file a.off in (1), which means that Facet_iterator
gives different point.
How can I get to the same position (same facet and vertex) when load the
file after saving the modified mesh as .off file? Any good idea, please let
me know. Thank you.
Samuel
- Re: [cgal-discuss] drawing a conic arc using Qt_widget, Mahmood Naderan, 04/21/2008
- Re: [cgal-discuss] drawing a conic arc using Qt_widget, Ashwin Nanjappa, 04/26/2008
- [cgal-discuss] 3D reflection function of point with respect to a plane, samuel kim, 04/26/2008
- Re: [cgal-discuss] 3D reflection function of point with respect to a plane, Pierre Alliez, 04/28/2008
- RE: [cgal-discuss] 3D reflection function of point with respect to a plane, samuel kim, 04/28/2008
- How can I get the same facet and vertex handle after saving as .off and reloading it?, samuel kim, 04/28/2008
- RE: [cgal-discuss] 3D reflection function of point with respect to a plane, samuel kim, 04/28/2008
- Re: [cgal-discuss] 3D reflection function of point with respect to a plane, Pierre Alliez, 04/28/2008
- [cgal-discuss] 3D reflection function of point with respect to a plane, samuel kim, 04/26/2008
- Re: [cgal-discuss] drawing a conic arc using Qt_widget, Ashwin Nanjappa, 04/26/2008
Archive powered by MHonArc 2.6.16.