Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] How to Iterate over each face in DT3 and the get the vertices?

Subject: CGAL users discussion list

List archive

[cgal-discuss] How to Iterate over each face in DT3 and the get the vertices?


Chronological Thread 
  • From: Senthil Caesar <>
  • To:
  • Subject: [cgal-discuss] How to Iterate over each face in DT3 and the get the vertices?
  • Date: Thu, 16 Nov 2017 13:11:03 -0700 (MST)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=Pass
  • Ironport-phdr: 9a23:2OgxZRV3RyViMqe7RIOhNO8j1+3V8LGtZVwlr6E/grcLSJyIuqrYZRyBt8tkgFKBZ4jH8fUM07OQ6P+wHzFYqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aLDyka1swf7y9WtWK14Xkn9y1rpbcagENiDumaq5pNz23qx/Qv48Ym9hMMKE0nyDEpGdIeuAe7mplPluJ10LH68Gs/J9ntRxZv/sn9tBNVf2iJowlSLYeATg7ZTNmrPb3vAXOGFLcrkAXVX8bx0EQWwU=

DTriangle_3 t;
vector<Point_3> V(4);

V[0] = Point_3(0,0,0);
V[1] = Point_3(1,0,0);
V[2] = Point_3(0,1,0);
V[3] = Point_3(1,1,1);

DTriangle_3::Finite_cells_iterator cit;
DTriangle_3::Finite_facets_iterator fit;


for (cit = t.finite_cells_begin(); cit != t.finite_cells_end(); ++cit) {

for(fit = t.finite_facets_begin(); fit != t.finite_facets_end();
++fit) {

?
}
}

I want the output for 4 faces as below

No of vertices in a face[i] and vertices Index in the face[i]

3 1 3 4
3 1 0 3
3 0 2 3
3 1 2 0



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/



Archive powered by MHonArc 2.6.18.

Top of Page