U V coordinates

We have a face (its vertices, edges and wire are known) and we create the underlying surface. How can we recuperate the UV coordinates of the vertices (whose 3Dcoordinates are already known) ?

Thanxs!

Thomas Moreau's picture

Hi Sarah,

Have a look at BRep_Tool::Parameters ( const TopoDS_Vertex& V, const TopoDS_Face& F);

which returns the parameters U,V of the vertex V on the face F as a gp_Pnt2d.

Regards, Thomas