U,V coordinates of a point

How may i find the U,V coordinates of a point on the surface? Finding the point form U,V is trivial using the Geom_Surface::Value(U,V), but is there an inverse for this function?

Thanks.

Francois Lauzon's picture

You could project a point on a face using GeomAPI_ProjectPointOnSurf for example. Have a look at the cdl files GeomAPI.cdl, BRepExtrema.cdl and Extrema.cdl.

Good Luck,
Francois.

Roman Lygin's picture

Guys,

ShapeAnalysis_Surface::ValueOfUV() can be additional way for singularity-containing surfaces.

Quote from .cdl:
"This method enhances functionality provided by the standard tool GeomAPI_ProjectPointOnSurface by treatment of cases when the projected point is near to the surface boundaries and when this standard tool fails."

Good luck.
Roman