Is points in surface

Hello friends
What method is used in Python to check that the points are on a surface?

.

#python
success, u, v = srf.ClosestPoint(pt)
if success:
    cp = srf.PointAt(u,v)
    a = pt.DistanceTo(cp) < tol
//C#
private void RunScript(Surface srf, Point3d pt, double tol, ref object A)
  {
    double u,v;
    if (srf.ClosestPoint(pt, out u, out v))
    {
      var cp = srf.PointAt(u, v);
      A = pt.DistanceTo(cp) < tol;
    }
  }

PtOnSrf.gh (9.5 KB)

1 Like

thanks teacher