GH_PointUtil
Methods
FitPlaneThroughPoints
#Fit a least-squares plane through a collection of points.
Parameters:
| pts (IEnumerable<GH_Point>) | Points to fit, may contain nulls. |
Returns: Best fit plane or null if insufficient points were supplied.
ProjectPointsToPlane
#Project a list of points onto the plane. The result will be points in plane-uv coordinates.
Parameters:
| pts (IEnumerable<GH_Point>) | Points to project. |
| plane (Plane) | Plane to project onto. |
| include_nulls (bool) | If True, nulls in the pts list are maintained. |
PullPointsToPlane
#Pull a list of points onto the plane. The result will be points in 3D world coordinates which are coincident with the given plane.
Parameters:
| pts (IEnumerable<GH_Point>) | Points to pull. |
| plane (Plane) | Plane to pull onto. |
| include_nulls (bool) | If True, nulls in the pts list are maintained. |
RemapPointsToPlane
#Remap a list of points onto the plane. This operation equals a ChangeBasisXForm for each point.
Parameters:
| pts (IEnumerable<GH_Point>) | Points to remap. |
| plane (Plane) | Plane to remap with. |
| include_nulls (bool) | If True, nulls in the pts list are maintained. |