Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: houssen <>
  • To: <>
  • Subject: [cgal-discuss] Intersect lines with lines, and, polygons with polygons in 3D space
  • Date: Thu, 12 Nov 2015 18:38:39 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:vuvuRxymlgcC95DXCy+O+j09IxM/srCxBDY+r6Qd0ekUIJqq85mqBkHD//Il1AaPBtWGra4VwLuG+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuStOU05X8hrD60qaQSjsLrQL1Wal1IhSyoFeZnegtqqwmFJwMzADUqGBDYeVcyDAgD1uSmxHh+pX4p8Y7oGwD884moppLXqz+Oqg5VrdFFy8OMmYv5cStuwOVHiWV4X5JUmILiQFFBUCR7BbnRYz8tAP7ruVlnieAa56lBYsoUCivuv84ACTjjz0KYmY0

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