Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Ordering intersection points

Subject: CGAL users discussion list

List archive

[cgal-discuss] Ordering intersection points


Chronological Thread 
  • From: Vinicius Azevedo <>
  • To: cgal-discuss <>
  • Subject: [cgal-discuss] Ordering intersection points
  • Date: Mon, 11 May 2015 11:56:35 -0400

Hi,

I was trying to compute the line formed by the intersection between a plane and a mesh. I've tried to follow the same approach as used on Polyhedron_cut_demo_plugin, but my segments are not completely on counterclockwise orientation. Any ideas?

Application screenshots:

I'm using a similar code to Polyhedron_cut_demo_plugin:

for (auto it = intersections.begin(), end = intersections.end(); it != end; ++it) {
  Segment *pCurrSegment = boost::get<Segment>(&(it->value().first));
  if (pCurrSegment) {
       points.push_back(pCurrSegment->source());
  }
}

Thanks!
Vinicius C. Azevedo.



Archive powered by MHonArc 2.6.18.

Top of Page