Question Author Mon, 09/15/2008 - 15:46 Hi,
Is it possible to get parameters from position? (reverse of Value(u,v))
Thanks
Author
01 Commenter-1 Mon, 09/15/2008 - 15:55 Hi Author,
I use the followin code:
...
double pU, pV;
Handle(Geom_Surface) surface = BRep_Tool::Surface(face);
...
GeomAPI_ProjectPointOnSurf projection( gp_Pnt(x, y, z), surface);
if(projection.NbPoints() > 0)
{
if(projection.LowerDistance() < Precision::Confusion() )
{
projection.LowerDistanceParameters(pU, pV);
}
else
;//your message here
}
Commenter-1
02 Commenter-2 Mon, 09/15/2008 - 16:00 Two ways:
1. The class GeomAPI_ProjectPointOnSurf.
2. The class ShapeAnalysis_Surface, method ValueOfUV, it tries to do its best to get the result when the previous way fails.
03 Author Mon, 09/15/2008 - 16:37 Thanks, that was great help