Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: Surface facet from Triangulation_3

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Surface facet from Triangulation_3


Chronological Thread 
  • From: piroshiki <>
  • To:
  • Subject: [cgal-discuss] Re: Surface facet from Triangulation_3
  • Date: Mon, 6 Dec 2010 05:33:41 -0800 (PST)



Thank you for your reply. I appreciate your help.

But I cannot write a code that works fine.

My code is like this :
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Delaunay_triangulation_3<K> Triangulation;
typedef Triangulation::Cell_handle Cell_handle;
typedef Triangulation::Vertex_handle Vertex_handle;
typedef Triangulation::Locate_type Locate_type;
typedef Triangulation::Point Point;
typedef Triangulation::Facet Facet;

・・・

std::list< Cell_handle > cells;
T.incident_cells( T.infinite_vertex( ), std::back_inserter( cells ) );
std::list< Cell_handle >::iterator cit;
for( cit = cells.begin()( ); cit != cells.end( ); cit++ ){
Cell_handle tmp_cell = *cit;
std::make_pair( tmp_cell, tmp_cell.index( T.infinite_vertex( ) ) );

}


"tmp_cell" is Triangulation::Cell_handle, and it doesn't have "index"

"c.index( Vertex_handle v)" is written here:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/TriangulationDS_3_ref/Concept_TriangulationDataStructure_3--Cell.html

So, I think I have to use TriangulationDataStructure_3::Cell, but I don't
know how I can do it.
And I don't know how to get facets(c, i) after execute std::make_pair,
either.

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Surface-facet-from-Triangulation-3-tp3071484p3074466.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page