Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Intersect lines with lines, and, polygons with polygons in 3D space

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Intersect lines with lines, and, polygons with polygons in 3D space


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Intersect lines with lines, and, polygons with polygons in 3D space
  • Date: Fri, 13 Nov 2015 08:54:48 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:5lFWFhZyqLE3pXqZETKWxHv/LSx+4OfEezUN459isYplN5qZpcq8bnLW6fgltlLVR4KTs6sC0LqL9f24EjVZvd6oizMrTt9lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUiv2OQc9HOnpAIma153xjLDvvcCLKFwR2HKUWvBbElaflU3prM4YgI9veO4a6yDihT92QdlQ3n5iPlmJnhzxtY+a9Z9n9DlM6bp6r5YTGfayQ6NtRrNRCHEqMns++dbwnRjFVwqGoHUGAUsMlR8dSTPI5hjhQpb8tGPesfB83zXSfeL7SrU5RS6zwa5gVBjymWZNf2oi9GbNi8tsyqdfiB2krh17hYXTZdfGZ7JFYqrBcIZCFiJ6VcFLWnkZDw==
  • Organization: GeometryFactory

It is not clear if your primitives lies in a common plane or if they
are general 3D primitives.

If they are general 3D primitives, you should triangulate you polygons
first and then use the Intersecting Sequences of dD Iso-oriented Boxes
package [1].

Sebastien.

[1] http://doc.cgal.org/latest/Box_intersection_d/index.html

On 11/12/2015 06:38 PM, houssen wrote:
Hello,

I need to intersect polygons, or lines, made of 3D points : is this
possible with CGAL ?

I am new to CGAL.

First, I checked out the doc to intersect polygons, or lines, made of 2D
points (x, y):
http://doc.cgal.org/latest/Sweep_line_2/index.html
http://doc.cgal.org/latest/Boolean_set_operations_2/index.html (in
particular section 3.3)
I went accross the tutorials without any problem using Point_2,
Segment_2 and Polygon_2.

Then, I looked at the doc related to using 3D points instead of 2D
points (http://doc.cgal.org/latest/Polygon/index.html - section 2.3): it
seems at least some operations are possible (for example, is_simple).

Now, I try to turn my basic tutorial into 3D space : basically, I tried
to replace Point_2 by Point_3, Segment_2 by Segment_3, Polygon_2 by
Polygon_3 the "naive" way, this seems not to be possible.
CGAL::compute_subcurves turns out to be unable to support Segment_3,
right ? Also Polygon_3 does not seem to exist ! :D

Can I compute intersections of polygons, or lines, made of 3D points (x,
y, z) with CGAL ?

Franck





Archive powered by MHonArc 2.6.18.

Top of Page