Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] OFF files-Edges Creation (Triangluation)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] OFF files-Edges Creation (Triangluation)


Chronological Thread 
  • From: Philipp Moeller <>
  • To:
  • Subject: Re: [cgal-discuss] OFF files-Edges Creation (Triangluation)
  • Date: Wed, 14 Mar 2012 23:40:06 +0100
  • Organization: GeometryFactory

Helmi Ben Hmida
<>
writes:

> Hello every Body,
> I´m trying to weel create the edges in an OFF files respecting this
> template (functional example) in order to convert it to a
> polyderon. To do, an algorithm creating edges has to be automatically
> implemented.
> The standard example sent is this one
> OFF
> 8 10 0
> 19.454456 9.214429 9.195417
> 19.454456 9.214429 6
> 19.629456 9.214429 6
> 19.629456 9.214429 9.195417
> 19.629456 13.049429 6
> 19.629456 13.049429 8.724564
> 19.454456 13.049429 6
> 19.454456 13.049429 8.724564
> 3 0 1 2
> 3 2 3 0
> 3 3 2 4
> 3 4 5 3
> 3 5 4 6
> 3 6 7 5
> 3 7 6 1
> 3 1 0 7
> 3 3 5 7
> 3 7 0 3
> 3 7 0 3
>
>
> The problem is with the 4 last edges, is there any relations between
> them to be created automatically by an algorithm, since we have a
> verayty of 3D points number (not always 8)
>
> Thanks in advance
> H.
>

It's hard to understand what you want to do. Do you want to read or
write an OFF file from or into a Polyhedron? Polyhedron overloads
operator<< and operator>> for those tasks [1].

If this has absolutely no relevance to your question, I misunderstood
you.

HTH,
Philipp Moeller
GeometryFactory

[1] :
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Polyhedron/Chapter_main.html#Section_25.4



Archive powered by MHonArc 2.6.16.

Top of Page