Forum archiveIssue archiveOther usage issues

Archived discussion

[BUG] GeomAPI_ProjectPointOnSurf fails with triangular surfaces

Other usage issuesTue, 10/25/2011 - 19:120 replies

Browse this forum
QuestionAuthor

I have found several cases where the projection of a point on a surface fails.
The surface has a degenerate edge, i.e. it is a triangular B-Spline surface.

You can find an example in the attached face.
These are the coordinates of the point to project:
-112.28038437744802
-27.011761852594425
75.000000000000000

This is my code:
void ExampleFunction(gp_Pnt myPoint, Handle_Geom_BoundedSurface mySurface)
{
GeomAPI_ProjectPointOnSurf projector(myPoint, mySurface);
Standard_Real d = projector.LowerDistance();
}

d is 25.818358462510830, while the point lies on the surface.

Regards.
Author

Discussion

No archived replies

Posts are displayed in their archived order.