For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Projection of point on surface

Anonymous's picture


When reading the file GeomAPI_ProjectPointOnSurf.cdl in the GeomAPI directory I found that it should be possible to split up a projection process into an init phase and a perform phase. This should probably give better performance when projecting more than one point onto a surface.

I tried the following code:

gp_Pnt CurrentPoint;

TColGeom_Array1OfSurface arrayOfSurfaces(1,NumberOfFaces);



GeomAPI_ProjectPointOnSurf PPS.Init(arrayOfSurfaces(i),U1,U2,V1,V2);


Unfortunately the program crashes during the perform step.

Doing all in one step works perfect, but a bit slow:


Does anyone have an idea what is wrong?

Thanks in advance


Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.