Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Convex hull errors

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Convex hull errors


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Convex hull errors
  • Date: Mon, 21 Feb 2011 15:51:38 +0100

Sebastien Loriot (GeometryFactory) wrote:
johnzjq wrote:
I convert the obj file to off file:
http://cgal-discuss.949826.n4.nabble.com/file/n3081403/1.off 1.off
At first sight I also observe some problems. I'll have a look at it
within following weeks. I'll post here when I have an explanation/solution.

We worked on rewriting the code to make it faster and the bug no longer
appears with this version.

Unfortunately, I am afraid it's a little bit late to include these
changes into the next release so the fix will probably appear only
in 3.9

In the meantime, the solution I proposed here:
https://lists-sop.inria.fr/sympa/arc/cgal-discuss/2010-12/msg00120.html
is the best alternative.

S.

S.


Here is the code:
#include <CGAL/Cartesian.h>
#include <CGAL/Gmpq.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>
#include <fstream>
typedef CGAL::Cartesian<CGAL::Gmpq> kernal;
typedef CGAL::Polyhedron_3<kernal,My_items> Polyhedron_3;

int _tmain(int argc, _TCHAR* argv[])
{
//IO
std::ifstream iFile;
iFile.open("c:\\1.off");
if (!iFile.is_open())
{
std::cerr<<"Error opening file";
}
Polyhedron_3 P;
iFile >> P;
iFile.close();
//Convexhull
Polyhedron_3 ch_obj;
CGAL::convex_hull_3(P.points_begin(),P.points_end(),ch_obj);
}






Archive powered by MHonArc 2.6.16.

Top of Page