algorithmic modeling for Rhino
Tags:
Rhino.Geometry.Plane.FitPlaneToPoints()
This function has two overloads (i.e. the same function name but with different parameters). One of the overloads allows you to pass in a Double that will be filled out by the function. This Double will contain the maximum deviation for the Plane fit result. If this deviation is larger than your planarity tolerance, then the points are not co-planar.
This works for any number of points, so you'll need to put p, q, r & s into a collection of sorts:
Dim pf As Plane
Dim dev As Double
Dim rc As PlaneFitResult = Plane.FitPlaneToPoints(New Point3d() {p, q, r, s}, pf, dev)
If (dev <= tolerance) Then
'Hurray!
Else
'Boo!
End If
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2025 Created by Scott Davidson.
Powered by