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 11:17:42 -0400

That did the trick, thanks!

Vinicius C. Azevedo.

On Tue, May 12, 2015 at 10:41 AM, Sebastien Loriot (GeometryFactory) <> wrote:
On 05/12/2015 04:34 PM, Vinicius Azevedo wrote:
I was testing the code and the split_graph_into_polylines function
called on Polyhedron_mesh_slicer_3.h needs three parameters instead of
the two passed. I tried to use the IsTerminalDefault, but it didn't work.

IIRC, this file was already shipped with CGAL and you need to use the
version provided in the tgz. At the cmake level you should have
someting like INCLUDE_DIRECTORIES(BEFORE PATH_TO_THE_TGZ)

Sebastien.



Vinicius C. Azevedo.

On Tue, May 12, 2015 at 9:45 AM, Vinicius Azevedo
< <mailto:>> wrote:

    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)
    < <mailto:>> 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






--
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