GH_PointUtil

public sealed class GH_PointUtil

Methods

FitPlaneThroughPoints

#
public static Plane FitPlaneThroughPoints(IEnumerable<GH_Point> pts)
Fit a least-squares plane through a collection of points.
pts (IEnumerable<GH_Point>)Points to fit, may contain nulls.
Best fit plane or null if insufficient points were supplied.

ProjectPointsToPlane

#
public static List<GH_Point> ProjectPointsToPlane(IEnumerable<GH_Point> pts, Plane plane, bool include_nulls)
Project a list of points onto the plane. The result will be points in plane-uv coordinates.
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

#
public static List<GH_Point> PullPointsToPlane(IEnumerable<GH_Point> pts, Plane plane, bool include_nulls)
Pull a list of points onto the plane. The result will be points in 3D world coordinates which are coincident with the given plane.
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

#
public static List<GH_Point> RemapPointsToPlane(IEnumerable<GH_Point> pts, Plane plane, bool include_nulls)
Remap a list of points onto the plane. This operation equals a ChangeBasisXForm for each point.
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.