Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Nef polygon

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Nef polygon


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Nef polygon
  • Date: Fri, 17 May 2013 10:08:31 +0200
  • Organization: GeometryFactory

On 05/17/2013 09:58 AM, ChaoM wrote:
Hi Sebastien:
I meet a newly problem. I use Delaunay Triangulation ,so I get the
Delaunay "dt", and push "dt" to ".off" format files. Then I use your given
code !

The problem comes probably from how you created the off file.

You should generate a polyhedron from the convex hull of your points.
See the examples of this chapter:
www.cgal.org/Manual/latest/doc_html/cgal_manual/Convex_hull_3/Chapter_main.html

Then construct nef from the polyhedron and it should be working.

Sebastien.

But there exits an error about "CGAL::OFF_to_nef" I think the problem is
mainly caused by these reasons:

1, In the manual ,the convertion is between polyhedron and Nef_polyhedron,
so My code firstly use Delaunay to triangulate some points, and store " dt "
into the .off format ,not the polyhedron.

2, I saw the .off webpage and the "OFF_to_nef.h" , the error is about
searching the index,for my code store the "dt",so the index of dt is not
meet the "OFF_to_nef.h" request!

I try to take all the left ,right and intersected points together! And use
Delaunay to triangulate them, but as you see in the picture ,the result
doesn't meet my goal! There exits other lines between two half spheres. So
I choose to use the Boolean Operation ,and use the structure of Nef
polyhedron!
Would you help me to solve the problem? Or should I show more detail codes?


Thank you !





--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Nef-polygon-tp4657453p4657480.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.18.

Top of Page