Skip to Content.
Sympa Menu

cgal-discuss - RE: [cgal-discuss] 3D surface mesh generation

Subject: CGAL users discussion list

List archive

RE: [cgal-discuss] 3D surface mesh generation


Chronological Thread 
  • From: Hui Ding <>
  • To: <>
  • Subject: RE: [cgal-discuss] 3D surface mesh generation
  • Date: Tue, 24 Jun 2008 15:15:08 +0000
  • Importance: Normal

Well, because when I try to do something like this:
 
  std::ofstream oFile("output",std::ios::out);
  for(Facet_iterator fit = c2t3.facets_begin();fit!=c2t3.facets_end();fit++){
     oFile<< fit.first->vertex((fit.second+1)&3)->Point();
     oFile<< fit.first->vertex((fit.second+2)&3)->Point();
     oFile<< fit.first->vertex((fit.second+3)&3)->Point();
  }
 
it comes the errors:
error C2227: left of '->Point' must point to class/struct/union/generic type
error C2039: 'first' : is not a member of 'CGAL::Filter_iterator<I,P>'
etc.
 

>Thanx, but what do you mean about "first" "second" of Facet f?? you mean:
>f ->vertex(( (f+1)+1 )&3)
>f ->vertex(( (f+1)+2 )&3)
>f ->vertex(( (f+1)+3 )&3)
>
>??
 
 


>
> On Tuesday 24 June 2008 15:02:56 Hui Ding wrote:
> > Thank you! and also in this case(all the facets are triangles), i need to
> > know the every three vertices on the same facet which is on the surface,
> > but I didnt find the direct way to do it, do you have an idea?
>
> If you have a Face f (from a 3D triangulation), the three corresponding
> Vertex_handle are:
> f.first->vertex((f.second+1)&3)
> f.first->vertex((f.second+2)&3)
> f.first->vertex((f.second+3)&3)
>
> if you have a Vertex_handle vh, the corresponding point is:
> vh->point()
>
> --
> Laurent Rineau, PhD
> Engineer at GeometryFactory
> http://www.geometryfactory.com/
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss



Discover the new Windows Vista Learn more!


Discover the new Windows Vista Learn more!



Archive powered by MHonArc 2.6.16.

Top of Page