Subject: CGAL users discussion list
List archive
- From: "乞丐开宝马" <>
- To: "cgal-discuss" <>, "cgal-discuss" <>
- Subject: Re: [cgal-discuss] Building polyhedra.
- Date: Mon, 10 Dec 2012 17:27:29 +0800
能不能大家共享一下学习资源啊
------------------ Original ------------------
From: "Laurent Rineau (CGAL/GeometryFactory)";
Date: 2012年12月10日(星期一) 下午5:25
To: "cgal-discuss";
Subject: Re: [cgal-discuss] Building polyhedra.
> I need to import a series of models from Sketchup into CGAL. Up to now
> I've been using the Sketchup API and a simple little script to triangulate
> faces which I then use to create an OFF file and build my CGAL Polyhedron.
> The problem is the Sketchup API uses floats and ocasionally creates
> degenerate OFF files. (This usually happens when I have two rectangular
> holes on a face that are closely lined up)
>
> The Sketchup model uses a structure very similar to that of CGAL with
> half_facets, half_edges, loops, etc. My question is, could I construct a
> Polyhedron from this type of data structure directly? If so how would I go
> about doing so.
You should the polyhedron incremental builder. That is an API to construct an
halfedges datastructure from scratch, using points and indices. See the
documentation, with a (too simple) example:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Polyhedron_ref/Class_Polyhedron_incremental_builder_3.html
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Building polyhedra., Noel Warren, 12/09/2012
- [cgal-discuss] Re: Building polyhedra., Noel Warren, 12/09/2012
- Re: [cgal-discuss] Building polyhedra., Laurent Rineau (CGAL/GeometryFactory), 12/10/2012
- <Possible follow-up(s)>
- Re: [cgal-discuss] Building polyhedra., 乞丐开宝马, 12/10/2012
Archive powered by MHonArc 2.6.18.