Lesson 17.2: Point Membership Classification with OpenCascade. Fast discrete PMC classifier.Which PMC method are you using?
Thanks! How can I get the point on the model?Hi, RGW
There is no problem with this algorithm, as can be clearly seen in the picture below.
You have some thin plates in your model. There are just no points that need to be tested that are within these thin plates.
Is the value of your destiny 10? I suggest you set it to 20
View attachment 617
I‘m not sure what do you mean by "How can I get the point on the model",Can you explain it in detail?Thanks! How can I get the point on the model?
I mean, if I have a point right on the surface of the model, how can I identify it?I‘m not sure what do you mean by "How can I get the point on the model",Can you explain it in detail?
I mean, if I have a point right on the surface of the model, how can I identify it?
bool IsIn(const gp_XYZ& pt, const double tol)
{
const double d = m_dist->Eval( pt.X(), pt.Y(), pt.Z() );
return Abs(d) <= tol;
}
Thank you.C++:bool IsIn(const gp_XYZ& pt, const double tol) { const double d = m_dist->Eval( pt.X(), pt.Y(), pt.Z() ); return Abs(d) <= tol; }