Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Question about I/O triangulation with Data

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Question about I/O triangulation with Data


Chronological Thread 
  • From: Jonas Wallin <>
  • To:
  • Subject: Re: [cgal-discuss] Question about I/O triangulation with Data
  • Date: Thu, 15 Mar 2012 11:51:11 +0100

Hello,

Yes I have look at those pages for 2D but a few things are unclear to me. 
It says
"the indices of its vertices and the non combinatorial information (if any) in this face"
what I don't understand is what is the non combinatorial information? 

Because if I have a triangulation with say indexes on the vertices and I would like to have that information passed into
cgal through the operator <<(). This seems possible if I interpret the documentation correctly but to me it is not clear how to do it. 

If I would known that the vertices are stored in the same order that they are read from the file it would be easy to have a separate
file with the data read into the program. But I don't see it written any where that this is the case and esthetically that solution dosn't look good to me.

mvh
Jonas

Hej Jonas,

That makes sense. So, did you have a look at these pages yet?
for 3D:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Triangulation_3_ref/Class_Triangulation_3.html
for 2D:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Triangulation_2_ref/Class_Triangulation_2.html
(from your mails I couldn't tell whether you are working in 2D or 3D, although I suspect 2D)

On both of these pages at the very end you see that both operator<<() and operator>>() are overloaded in CGAL to act on a triangulation and the format is explicitly explained. Since you already have the full triangulation in some format, I'm guessing it shouldn't be to hard too convert that into 'CGAL-formatting', allowing you to directly read the triangulation into CGAL triangulation object using the extraction operator, operator>>().

Sincerely,
Jakob


   Hej Jonas,

   Maybe a bit silly.....if you have the tessellation already, why use CGAL to recalculate the same tessellation?

   Greetsz, Jakob

   [..]


   --
   You are currently subscribed to cgal-discuss.
   To unsubscribe or access the archives, go to
   https://lists-sop.inria.fr/__wws/info/cgal-discuss <https://lists-sop.inria.fr/wws/info/cgal-discuss>



--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss





Archive powered by MHonArc 2.6.16.

Top of Page