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: Vinicius Azevedo <>
  • To: cgal-discuss <>
  • Subject: Re: [cgal-discuss] Ordering intersection points
  • Date: Tue, 12 May 2015 09:45:34 -0400

Thanks Sebastien, that helps a lot.

Is there any quick way to add these edge rings into the polyhedron mesh?



Vinicius C. Azevedo.

On Tue, May 12, 2015 at 2:23 AM, Sebastien Loriot (GeometryFactory) <> wrote:
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.

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss






Archive powered by MHonArc 2.6.18.

Top of Page