Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Nef_polyhedron_2 with Epick kernel

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Nef_polyhedron_2 with Epick kernel


Chronological Thread 
  • From: houes <>
  • To:
  • Subject: Re: [cgal-discuss] Nef_polyhedron_2 with Epick kernel
  • Date: Sat, 28 Apr 2018 15:48:54 -0700 (MST)
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
  • Ironport-phdr: 9a23:X3qrYxUQcO1+K4jxyw3zR+uSgO3V8LGtZVwlr6E/grcLSJyIuqrYYxSPt8tkgFKBZ4jH8fUM07OQ7/i7HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba98IRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KptVRTmijoINyQh/W/ZisJ+kqFVrxCvpxJizIHbfI6bOeFifq7fYd8WWXZNUtpPWyFHH4iyb5EPD+0EPetAr4n9oEYOogWlBQKxA+7vzj5IhnD23a0m0+QhFhzG0xI7H98Vv3TUqc/6NKYWUeyv0KbIyjDDYupQ1Dzg5obIdRUhruuNXbJ2acfRz1MgGBjegVWUt4PpJS+a1uMIs2Wd8uFuVvqvhnY6pwxwvDSj3Nkgh4nHi44P11zJ+yt0zJw3KNGmTkNwfMSqH4FKty6AMot7WsMiTH9suCY90rAGv5G2cDIMyJs93BHQcPiHfJaS7h3/U+aRJC90hHNjeL2hmxa/6VWsx+ziWsWuzlpHriRInsPRun0D2RHf8MqKRuVl8kekwzmP1gTT6u9eIUAzkKrWM5ohwr8/lpoTrUTDHij2mFjog6+NbUgk9e2o5P7mYrXivJOTK4h0igTmPqQ0hsO/Gfg4MhQJX2WD5eu826fs/UngTLpXj/02ibXWsI3BJcQAvaO5GA9U0oM76xmlFTum0dIYnWMGLF1fYh6HgZLpaBnyJ6XzAv67xlitizx23OvuP7v7A5yLIGKQvq3meON97FNR00JnydFQ545UDawMO9r8X0bwsJrTCRpvYF/8+PruFNgojtBWYmmIGKLMaPqD42/N3fomJqy3XKFQvT/8L/Y/4Pu31C02nFYcee+i2p5FMynkTMQjGF2QZD/XuvlECX0D51NsQ+njiVnEWjlWNS7rAvAMowojAYfjNr/tA4CghLvYgXW9QttQb2pMDl3KGnDtJdyJ

Dear Efi,

Hello. I basically want to do the halfplane intersection either in 2D or 3D
(in 2D, I have a set of oriented lines, in 3D, I have a set of oriented
planes).

In 3D, I have used CGAL::halfspace_intersection_3() to do halfplane
intersections of a set of planes(all planes pass through the Origin and I
add a cap plane to get a closed polyhedra).

My problem can be also solved in 2D: I intersect each of my 3D planes with
one fixed plane Z=1, and I get a set of oriented 2D line, each of these line
define a halfplane. And the halfplanes intersection of these lines give the
result I want: a convex polyhedon.

The problem is no matter I do 2D or 3D, the polyhedron or polyhedra resulted
from halfplane intersection is not necessarily closed: unbounded either in
2D or 3D. Thus the CGAL::halfspace_intersection_3() will throw exception: no
intersection found. After some research, I found the Nef_polyhedron is the
solution: it deal with polyhegon that can be open. Therefore, I want to
convert my lines/planes to Nef_polyhegron::Line or Nef_polyhegron::Plane to
do the intersection, which is equivalently the halfplane intersectin.

The problem I found with Nef_polyhegron is that there is no documentation
that tell me how to use Real number type instead of integer. All my data is
stored in Epick and use double coordinates. Therefore, if would be great if
you can provide me with some clue on this so I can utilize Nef_polyhedron
either in 2D or 3D using the data from Epick.

The solution provided by Adrien Lefieux works for me, but I have problem
converting data from Epick to Nef_polyhedron::Point or Nef_polyhedron::Line,
do you have a solution?

Thank you very much.

houes



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/



Archive powered by MHonArc 2.6.18.

Top of Page