Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Ordering intersection points


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Ordering intersection points
  • Date: Tue, 12 May 2015 08:23:08 +0200
  • Organization: GeometryFactory

On 05/11/2015 05:56 PM, Vinicius Azevedo wrote:
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:
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.

Here is some code that is computing the intersection of a triangle mesh with a plane. The code is currently under review for integration into CGAL.

HTH

Sebastien.

Attachment: slicer.tgz
Description: application/compressed-tar




Archive powered by MHonArc 2.6.18.

Top of Page