Subject: CGAL users discussion list
List archive
- From: 徐松 <>
- To:
- Subject: Re: [cgal-discuss] Why do the OFF_to_nef_3 take so much time?
- Date: Tue, 6 Mar 2012 21:13:20 +0800
- Authentication-results: mr.google.com; spf=pass (google.com: domain of designates 10.52.67.199 as permitted sender) ; dkim=pass
thank you for your help!
2012/3/5 Sebastien Loriot (GeometryFactory) <>
OFF_to_nef_3 is a function that should be used when the OFF file is not
a valid Polyhedron. This function considers support planes of all facets and do its best to build a nef polyhedron.
If your input OFF is a valid Polyhedron then first create a polyhedron
and use the constructor of Nef from a polyhedron.
do something like that:
#include <CGAL/IO/Polyhedron_iostream.h>
std::ofstream file("myoff.off");
Polyhedron_3<Kernel> P;
file >> P;
Nef_polyhedron_3<Kernel> nef(P);
Sebastien.
On 03/03/2012 05:04 AM, BOSS wrote:
Generating a Nef_Polyhedron_3 from a .off file is my goal .
I use the OFF_to_nef_3 to transfer .off file to a Nef Polyhedron.
But I find the time spent is so long.Sometimes the time may be beyond 5
minutes.
Should I do something when I use the OFF_to_nef_3 ?
Is there another way to achieve the same goal ?
I hope somebody can help me or give me some suggests.
Thanks.
--
View this message in context: http://cgal-discuss.949826.n4.nabble.com/Why-do-the-OFF-to-nef-3-take-so-much-time-tp4440642p4440642.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- [cgal-discuss] Why do the OFF_to_nef_3 take so much time?, BOSS, 03/03/2012
- Re: [cgal-discuss] Why do the OFF_to_nef_3 take so much time?, Sebastien Loriot (GeometryFactory), 03/05/2012
- Re: [cgal-discuss] Why do the OFF_to_nef_3 take so much time?, 徐松, 03/06/2012
- Re: [cgal-discuss] Why do the OFF_to_nef_3 take so much time?, Sebastien Loriot (GeometryFactory), 03/05/2012
Archive powered by MHonArc 2.6.16.