Subject: CGAL users discussion list
List archive
- From: Laurent Saboret <>
- To:
- Subject: Re: [cgal-discuss] Getting crazy with surface parameterization
- Date: Fri, 15 Jan 2010 17:27:32 +0100
- Organization: INFOTERRA
Hi Fulvio,
CGAL surface mesh parameterization uses a wrapper (an "adaptor") around Polyhedron_3 meshes named Parameterization_polyhedron_adaptor_3. mesh_main_border_vertices_begin(), mesh_main_border_vertices_end() and get_vertex_uv () are methods of the adaptor.
get_vertex_position() will provide you a vertex 3D position.
See http://www.cgal.org/Manual/last/doc_html/cgal_manual/Surface_mesh_parameterization_ref/Concept_ParameterizationMesh_3.html
Best regards,
Laurent Saboret
Fulvio Mastrogiovanni wrote:
Dear All,
I am trying to do something which - I am sure - it is pretty simple, but I
cannot figure out how to do it.
Basically, after a parameterization (e.g., least square free border
parameterizer, straightforward given the excellent example) I would like to be
able to 1) retrieve the coordinates of the border vertices, as well as 2) the
mapping between 2D (u,v) and 3D (x,y,z) coordinates (e.g., retrieving the
latter given the former).
Having a polyhedron, this should be very simple. For instance, I though the
first problem could be dealt with like this:
// Iterate over the mesh border
Polyhedron::Vertex_iterator viBorder;
for(viBorder = pMesh.mesh_main_border_vertices_begin(); viBorder !=
pMesh.mesh_main_border_vertices_end(); viBorder++)
{
ppaMeshAdaptor::Point_2 p2Point;
p2Point = pMesh.get_vertex_uv(viBorder);
double dX = p2Point.x();
double dY = p2Point.y();
cout << dX << " " << dY << endl;
}
Unfortunately I experience problems since, e.g.,
mesh_main_border_vertices_begin() is not a member of
CGAL::Polyhedron_3<PolyhedronTraits_3>...
What am I doing wrong here? Sorry for the naive questions.
Best,
Fulvio
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.
- [cgal-discuss] Getting crazy with surface parameterization, Fulvio Mastrogiovanni, 01/14/2010
- Re: [cgal-discuss] Getting crazy with surface parameterization, Laurent Saboret, 01/15/2010
Archive powered by MHonArc 2.6.16.