Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Howto adapt my mesh for parameterization.

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Howto adapt my mesh for parameterization.


Chronological Thread 
  • From: Laurent Saboret <>
  • To:
  • Subject: Re: [cgal-discuss] Howto adapt my mesh for parameterization.
  • Date: Wed, 27 Jan 2010 18:17:17 +0100
  • Organization: INFOTERRA

Hi Paulo,

The first step to use CGAL surface mesh parameterization is to convert your data to CGAL Polyhedron_3 http://www.cgal.org/Manual/last/doc_html/cgal_manual/Polyhedron/Chapter_main.html

You have several ways :
* Save your data in a .OFF file and let Polyhedron_3 read it (the easiest) http://www.cgal.org/Manual/last/doc_html/cgal_manual/Polyhedron/Chapter_main.html#Section_23.4
* Convert your data by code (as you started below) using Euler operations http://www.cgal.org/Manual/last/doc_html/cgal_manual/Polyhedron/Chapter_main.html#Subsection_23.3.7
* Convert your data by code using Polyhedron_incremental_builder_3 http://www.cgal.org/Manual/last/doc_html/cgal_manual/Polyhedron/Chapter_main.html#Subsection_23.6.2

Best regards,
Laurent Saboret



wrote:
Hello,

I'm using CGAL's parameterization package.
There's a very nice page explaining how to use if with OFF files, but that's
not my case.
So, instead of loading a mesh from a file, I'm trying to pass my vertices and
faces to CGAL.

My data is formatted in a opengl typical pattern. I have a vertex array, one
or
more arrays of triangular faces. These faces contain no more than indexes to
the vertex array.

What I'm doing is to pass the face like:
typedef CGAL::... Poly;
Poly poly;
for all my faces get the face vertexes (pa, pb and pc)
poly.make_triangle(Point(pa.x, pa.y, pa.z), Point(pb.x, pb.y, pb.z),
Point(pc.x, pc.y, pc.z));

Of course this repeats vertexes (points), and does not give any information
about the faces connectivity.
In the end, running the algorithm I get: "Parameterization requires a convex
border"
The mesh I'm using right now is just a couple of coplanar triangles, or if you
want, a tessellated unit square.

But I can't seem to be able to find how to pass the vertexes and the faces
separately.
Nor do I know how to specify the border.
Is there an example of this somewhere?
I am searching the examples and demos, but some help would be greatly
appreciated.

Thank you
Paulo


Ce courrier électronique et toutes les pièces éventuellement jointes qu’il
contient sont CONFIDENTIELS et destinés exclusivement à l’usage de leur
destinataire. Si une erreur de transmission ou une adresse erronée a mal
dirigée ce courrier, merci d’en informer l’expéditeur en lui faisant une
réponse par courrier électronique dès réception. Si vous n’êtes pas le
destinataire de ce courrier, vous ne devez pas l’utiliser, le conserver, en
faire état, le distribuer, le copier, l’imprimer ou en révéler le contenu à
une tierce partie.
Ce courrier électronique est à usage strictement informatif et ne saurait
engager de quelque manière que ce soit INFOTERRA France SAS, ni ses filiales.

This e-mail and any attachments hereto are CONFIDENTIAL and intended solely
for the use of the addressee. If you have received this e-mail in error
please send it back to the person that sent it to you.
If you have received it in error, please notify the sender by return email.
If you are not the addressee of this email, you must not use, keep,
disseminate, copy, print or otherwise deal with it.
This email is for information only and will not bind INFOTERRA France SAS in
any contract or obligation, nor its subsidiaries.



Archive powered by MHonArc 2.6.16.

Top of Page