Surface evaluation

I would like to get U, V parameter of a surface at the given point (x, y, z). How can I do it?

Many thanks in advance!

Marco Matt's picture

const gp_Pnt2d getUV(BRepAdaptor_Surface & adaptor, const gp_Pnt & point)
{
ShapeAnalysis_Surface analizer(adaptor.Surface().Surface());
gp_Pnt2d uv;
uv = analizer.ValueOfUV(point, TOLERANCE_HIGH);
return uv;
}

JinXu's picture

Hi, Marco,

Thanks a lot!!