Subject: CGAL users discussion list
List archive
- 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:At first sight I also observe some problems. I'll have a look at it
http://cgal-discuss.949826.n4.nabble.com/file/n3081403/1.off 1.off
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);
}
- [cgal-discuss] Convex hull errors, johnzjq, 12/08/2010
- Re: [cgal-discuss] Convex hull errors, Sebastien Loriot (GeometryFactory), 12/09/2010
- [cgal-discuss] Re: Convex hull errors, johnzjq, 12/09/2010
- Re: [cgal-discuss] Re: Convex hull errors, Sebastien Loriot (GeometryFactory), 12/09/2010
- [cgal-discuss] Re: Convex hull errors, johnzjq, 12/10/2010
- [cgal-discuss] Re: Convex hull errors, johnzjq, 12/10/2010
- Re: [cgal-discuss] Re: Convex hull errors, Sebastien Loriot (GeometryFactory), 12/20/2010
- [cgal-discuss] 答复: Convex hull errors, johnzjq, 12/20/2010
- Re: [cgal-discuss] 答复: Convex hull errors, Sebastien Loriot (GeometryFactory), 12/20/2010
- [cgal-discuss] Questions about interpolation, Jatin Relan, 12/20/2010
- Re: [cgal-discuss] Questions about interpolation, Sebastien Loriot (GeometryFactory), 12/27/2010
- Re: [cgal-discuss] Questions about interpolation, Jatin Relan, 12/29/2010
- Re: [cgal-discuss] Questions about interpolation, Sebastien Loriot (GeometryFactory), 12/29/2010
- [cgal-discuss] 答复: Convex hull errors, johnzjq, 12/20/2010
- [cgal-discuss] Re: re: Convex hull errors, johnzjq, 12/20/2010
- [cgal-discuss] Re: Convex hull errors, johnzjq, 12/10/2010
- Re: [cgal-discuss] Re: Convex hull errors, Sebastien Loriot (GeometryFactory), 12/09/2010
- [cgal-discuss] Re: Convex hull errors, johnzjq, 12/09/2010
- Re: [cgal-discuss] Convex hull errors, Sebastien Loriot (GeometryFactory), 12/09/2010
Archive powered by MHonArc 2.6.16.