Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] converting tetrahedral mesh to delaunay triangulation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] converting tetrahedral mesh to delaunay triangulation


Chronological Thread 
  • From: Zohar <>
  • To:
  • Subject: Re: [cgal-discuss] converting tetrahedral mesh to delaunay triangulation
  • Date: Tue, 11 Mar 2014 04:41:01 -0700 (PDT)

A.
You can add you points to:

CGAL::Delaunay_triangulation_3<GT,Tdsi> tr;
tr.insert(GT::Point_3(x, y, z));

which would create a new Delaunay triangulation.

B.
If you want to retain your triangulation, the as suggested in the other
thread, you might want to define:

CGAL::Triangulation_3<GT,Tdsi> tr;

Insert some points to it (similar as above), and the tr can be saved and
loaded, e.g.:

ofstream fl(c_tr3_file, ios::binary);
CGAL::set_binary_mode(fl);
fl << tr;

Write your own similar methods to the save/load that would convert your tet
structure to Triangulation_3.






--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/converting-tetrahedral-mesh-to-delaunay-triangulation-tp4658949p4658950.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page