Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Nef polyhedron and nested shells

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Nef polyhedron and nested shells


Chronological Thread 
  • From: Qingnan Zhou <>
  • To:
  • Subject: Re: [cgal-discuss] Nef polyhedron and nested shells
  • Date: Fri, 12 Jun 2015 10:23:42 -0400

I have created a minimal example to illustrate this problem.  The code is really short and can be downloaded from

https://gist.github.com/qnzhou/03d5c2fde1032bf2a97e

Please let me know if you are not able to reproduce my result.  Any help would be appreciated.

best,
James

On Sat, Jun 6, 2015 at 11:50 AM, Qingnan Zhou <> wrote:
Dear all,

I noticed that CGAL's Nef Polyhedron gave incorrect result when the input contains multiple nested shells such as the nested_ball.off, which consists of 4 concentric spheres with normals pointing outward and inward in an alternating fashion.  When intersecting it with rectangular block, box.off, it produces the following output: out.off:

Inline image 1

Where the correct output should be the following:

Inline image 2

Is there anything special I need to do when using CGAL's Nef polyhedron class?  Thanks in advance!

best,
James

PNG image

PNG image




Archive powered by MHonArc 2.6.18.

Top of Page