Subject: CGAL users discussion list
List archive
- From: Fulvio Mastrogiovanni <>
- To:
- Cc:
- Subject: [cgal-discuss] Getting crazy with surface parameterization
- Date: Thu, 14 Jan 2010 15:46:23 +0100
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
--
Fulvio Mastrogiovanni
DIST|University of Genova|Italy
Email:
WWW: http://www.laboratorium.dist.unige.it/~fulvio/
Phone: (+39)0103532801
"Chi ? abile nel sortire bizzarri stratagemmi ? inesauribile come il
Cielo, la Terra e i grandi fiumi. Giunto al termine riparte, come il
Sole e la Luna; dopo morto rinasce, come le quattro stagioni."
- [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.