Skip to Content.
Sympa Menu

cgal-discuss - CGAL (need help writing the facets to a file)

Subject: CGAL users discussion list

List archive

CGAL (need help writing the facets to a file)


Chronological Thread 
  • From: "Santosh Tiwari" <>
  • To: <>
  • Subject: CGAL (need help writing the facets to a file)
  • Date: Sat, 8 Mar 2008 21:29:08 -0500
  • Organization: Clemson University

Hello,

I am learning to use CGAL.

I want to output the vertices of a list of Facets on the screen. How do I do
it?

Any help or references would be appreciated. Following is the code snippet,
I am using.



// examples/Alpha_shapes_3/example_big_alpha.C

typedef Alpha_shape_3::Facet Facet;

int main() {

Delaunay_hierarchy dt;
//some code
Alpha_shape_3 as(dt);
//some code
std::list<Facet> facets;
as.get_alpha_shape_facets(std::back_inserter(facets),
Alpha_shape_3::REGULAR);
std::cout << facets.size() << " boundary facets" << std::endl;
for(std::list<Facet>::const_iterator iter = facets.begin();
iter!=facets.end(); ++iter) {
//std::cout<<*iter;
}


I want to output all the vertices of the facet.

I could not find the definition of the Facet class.

Thanks a lot.
__
Santosh Tiwari







Archive powered by MHonArc 2.6.16.

Top of Page