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?


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,

Roman Lygin's picture


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.