Subject: CGAL users discussion list
List archive
- 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?
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:
The cutting plane and the object: https://dl.dropboxusercontent.com/u/5919734/bunnyUnorderedSegments.png
The resulting line formed: https://dl.dropboxusercontent.com/u/5919734/bunnyUnorderedSegments2.png
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.
- [cgal-discuss] Ordering intersection points, Vinicius Azevedo, 05/11/2015
- Re: [cgal-discuss] Ordering intersection points, Sebastien Loriot (GeometryFactory), 05/12/2015
- Re: [cgal-discuss] Ordering intersection points, Vinicius Azevedo, 05/12/2015
- Re: [cgal-discuss] Ordering intersection points, Vinicius Azevedo, 05/12/2015
- Re: [cgal-discuss] Ordering intersection points, Sebastien Loriot (GeometryFactory), 05/12/2015
- Re: [cgal-discuss] Ordering intersection points, Vinicius Azevedo, 05/12/2015
- Re: [cgal-discuss] Ordering intersection points, Vinicius Azevedo, 05/13/2015
- Re: [cgal-discuss] Ordering intersection points, Sebastien Loriot (GeometryFactory), 05/14/2015
- Re: [cgal-discuss] Ordering intersection points, Vinicius Azevedo, 05/13/2015
- Re: [cgal-discuss] Ordering intersection points, Vinicius Azevedo, 05/12/2015
- Re: [cgal-discuss] Ordering intersection points, Sebastien Loriot (GeometryFactory), 05/12/2015
- Re: [cgal-discuss] Ordering intersection points, Vinicius Azevedo, 05/12/2015
- Re: [cgal-discuss] Ordering intersection points, Vinicius Azevedo, 05/12/2015
- Re: [cgal-discuss] Ordering intersection points, Sebastien Loriot (GeometryFactory), 05/12/2015
Archive powered by MHonArc 2.6.18.