Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (CGAL/GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Building polyhedra.
- Date: Mon, 10 Dec 2012 10:25:52 +0100
- Organization: GeometryFactory
Le dimanche 09 décembre 2012 11:30:26 Noel Warren a écrit :
> 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/
- [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.