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

About "GProp_PEquation"

angel's picture
Forums: 

Hi Body,
I try to use "GProp_PEquation" and my code as following,
Standard_Real Tolerance = 1;
// Arry is TColgp_Array1OfPnt
// aPln is Geom_Plane
GProp_PEquation PE(Arry,Tolerance);
if (PE.IsPoint()) aPln = new Geom_Plane(PE.Plane());
else if (PE.IsLinear()) aPln = new Geom_Plane(PE.Plane());
else if (PE.IsPlanar()) aPln = new Geom_Plane(PE.Plane());
else if (PE.IsSpace()) aPln = new Geom_Plane(PE.Plane());

When I use different cloud,
sometimes the runnig is crush. I try to set the Tolerance to be 1000, but the situation is the same. Who can tell me why and how to use is the function correctly and how to avoid the crash?

By the way, I cann't find the information about GProp_PEquation in "Modeling Algorithms User’ s
Guide".

Sincerely,
Angel