Subject: CGAL users discussion list
List archive
- From: Thomas Holzmann <>
- To:
- Subject: [cgal-discuss] Converting Tetgen triangulation to CGAL
- Date: Tue, 29 Nov 2016 17:23:08 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:XzwBVh3702z1AUCasmDT+DRfVm0co7zxezQtwd8ZseseK/ad9pjvdHbS+e9qxAeQG96KsLQf1KGM6vyoGTRZp83e4DZaKN0EfiRGoPtVtjRoONSCB0z/IayiRA0BN+MGamVY+WqmO1NeAsf0ag6aiHSz6TkPBke3blItdaymUrLV2s+43uT395zIaBhTnxK8Z6lzJVO4t1b/rM4T1LdiLaM40VPppX9afu1Qwys8JVWXjRP14MGY/ZVstThNtOgo5YhJTfOpLOwDUbVEAWF+YCgO78rxuEybQA==
Hi all, I created a constrained Delaunay triangulation in 3D with Tetgen and want to convert it now to a CGAL triangulation. As it is no Delaunay triangulation anymore, I try to create an unrestricted CGAL::Triangulation_3<CGAL::Exact_predicates_inexact_constructions_kernel,CGAL::Triangulation_data_structure_3<Vbh, Cb> > wit the data from the CDT. When I use the "normal" insert function to incrementally create the triangulation, I cannot directly influence the structure of the triangulation and therefore, as I want to keep the structure, this is not an option for me (am I right?). So I tried to directly add the vertices and cells in the TDS using: v1 = cgalTriangulation.tds().create_vertex(cgal_pt); ... cell = cgalTriangulation.tds().create_cell(v1, v2, v3, v4); However, it seems as if the cells are not added. Here are the statistics of the triangulation after adding the data: number_of_vertices() = 253792 number_of_finite_facets () = 0 number_of_finite_cells () = 0 cgalTriangulation.is_valid(true) says: valid data structure valid triangulation Do I also need to set the cell neighbors and/or facets? Or am I completely wrong with my approach? Any help would be appreciated! Thomas -- ==================================================== Dipl.-Ing. Thomas Holzmann TU Graz - Institut fuer Maschinelles Sehen und Darstellen Graz University of Technology - Institute for Computer Graphics & Vision Inffeldgasse 16/II, 8010 Graz, Austria http://www.icg.tugraz.at/ phone: +43 316 873 5091 ==================================================== |
- [cgal-discuss] Converting Tetgen triangulation to CGAL, Thomas Holzmann, 11/29/2016
- Re: [cgal-discuss] Converting Tetgen triangulation to CGAL, Andreas Fabri, 11/29/2016
- Re: [cgal-discuss] Converting Tetgen triangulation to CGAL, Thomas Holzmann, 11/30/2016
- Re: [cgal-discuss] Converting Tetgen triangulation to CGAL, Andreas Fabri, 11/30/2016
- Re: [cgal-discuss] Converting Tetgen triangulation to CGAL, Thomas Holzmann, 11/30/2016
- Re: [cgal-discuss] Converting Tetgen triangulation to CGAL, Andreas Fabri, 11/30/2016
- Re: [cgal-discuss] Converting Tetgen triangulation to CGAL, Thomas Holzmann, 11/30/2016
- Re: [cgal-discuss] Converting Tetgen triangulation to CGAL, Andreas Fabri, 11/29/2016
Archive powered by MHonArc 2.6.18.