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: Sun, 11 Mar 2012 22:21:00 +0100

Thanks for the response.

I only mentioned OFF because it was just in all the examples 
so that's all I know.
I have a complete triangulation with Face, vertex and to each vertex 
having an id (int) and a double.
Then  I would like to get this into an CGAL triangulation how would
that be easiest done?

mvh
Jonas Wallin 



Triangulation_2 does not support output/input to/from OFF files.

However, OFF has explicit support for color attributes on faces, but
AFAIK those are not supported by any of our OFF readers/writers. I have
a somewhat generic Boost.Spirit parser for OFF files around somewhere
and it should be "easy" to add optional color information to it and
build a reader/writer for Triangulation_2 out of it.

Attributes for OFF are limited. If you need something more general, you
might want to have a look at the PLY format.

--
Philipp Moeller
GeometryFactory

--
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