Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] 3D Arrangement of planes using Nef Polyhedra

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] 3D Arrangement of planes using Nef Polyhedra


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] 3D Arrangement of planes using Nef Polyhedra
  • Date: Fri, 28 Aug 2015 07:38:08 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:qHkdnBEtOfOHdXehq4R+KJ1GYnF86YWxBRYc798ds5kLTJ75ocqwAkXT6L1XgUPTWs2DsrQf27GQ7f2rADRcqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh7v0pcCYOl0UzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IAu3GePEzQrVcSTgnKGso/9bDtB/ZTALJ6GFPfH8Rl08COAXP5QrmX5r3+g/9rOt6xGHaEsDxSL0oQyWM5qx3TwX5yW1PYyU993vWjdA2iaZzrxeophg5yInRNtLGfMFid7/QKItJDVFKWdxcAnRM
  • Organization: GeometryFactory

On 08/25/2015 08:42 PM, Bear wrote:
Hello,

I want to have 3D arrangement of planes using Nef_Polyhedron_3. For example,
I want to cross one plane with one 3D cubic, then the cubic will be
partitioned into two volumes, and all volumes can be visited. One possible
way is intersection the cubic Nef_Polyhedron with the plane. See following
example. I have tried all three Intersection_mode, CLOSED_HALFSPACE,
OPEN_HALFSPACE, PLANE_ONLY. However, the intersection results are all the
same, the same one with the input cubic Nef_polyhedron.


I don't think it's possible to do what you want.
From here:
http://doc.cgal.org/latest/Nef_3/classCGAL_1_1Nef__polyhedron__3.html

"A 3D Nef polyhedron is a subset of the 3-dimensional space that is the result of forming complements and intersections starting from a finite set H of 3-dimensional halfspaces."

In you case you are looking for a decomposition of the 3D space. Maybe
you should have a look at the linear complex to see whether it can fit
you needs (in particular you won't be able to have infinite cells):
http://doc.cgal.org/latest/Linear_cell_complex/index.html

Sebastien.

Another option is to construct half plane Nef_Polyhedron to do intersection.
However, the three Boolean operation, intersection, difference, and union,
can only result in one volume.

See attachments for codes. Please help me to do 3D arrangement of planes.
Maybe there is some other ways to do that. Or I need to add more Boolean
operations to Nef_Polyhedron. If so, please give me some suggestions to how
to improve codes.

Thanks in advance.
test_nef_intersection_nef.cpp
<http://cgal-discuss.949826.n4.nabble.com/file/n4661101/test_nef_intersection_nef.cpp>

test_nef_intersection_plane.cpp
<http://cgal-discuss.949826.n4.nabble.com/file/n4661101/test_nef_intersection_plane.cpp>




--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/3D-Arrangement-of-planes-using-Nef-Polyhedra-tp4661103.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.18.

Top of Page