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, 20 Dec 2010 09:02:26 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=cdxc4QyVw6TLnFsr04kqB7ZtcKzmfE5HktJXUhG80Ln6ZgrmIQJ7s15PCo00/LFw5f 6NLkI/zHQT3zcAixYgM01td1mkLiVJiT3mJ2QFbtesO48pRPmpOTkjG/YVb21xofmvN/ 67sYlf2FCI93bJgmtr5i4WgbBVHMh3o2bAOYo=

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.

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