DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="2.0.0-beta4036" />

 Plane

public class Plane : Geometry
public Vector Normal { get; }

Returns the normal direction of the Plane.

public Point Origin { get; }

Returns the origin of the Plane.

public Vector XAxis { get; }

The X basis of the Plane

public Vector YAxis { get; }

The Y basis of the Plane

Fits a Plane to the input Points; basically a 3D scatterplot fit.

public static Plane ByLineAndPoint(Line line, Point point)

Create the Plane containing the input Line and external Point. Point cannot lie on the Line or in the Line axis.

public static Plane ByOriginNormal(Point origin, Vector normal)

Create a Plane centered at root Point, with input normal Vector.

public static Plane ByOriginNormalXAxis(Point origin, Vector normal, Vector xAxis)

Create an "oriented" Plane, positioned at Point origin with Vector normal, but with a specific X axis orientation. This has no impact to splitting, intersect, project, etc oporations, it only specifies the orientation of the input CoordinateSystem.

public static Plane ByOriginXAxisYAxis(Point origin, Vector xAxis, Vector yAxis)

The X and Y axis lie in the plane. The Z axis is the cross product of the two Vectors.

public static Plane ByThreePoints(Point origin, Point planePoint, Point xAxisPoint)

Create a the Plane containing the three input Points.

public static Plane XY()

Creates a plane in the world XY

public static Plane XZ()

Creates a plane in the world XZ plane

public static Plane YZ()

Creates a plane in the world YZ

public Plane Offset(double dist = 1)

Create a new Plane offset by this Plane in the normal direction by the specified distance.

Produces a new CoordinateSystem representing this plane. It is based on the origin, and X and Y axis basis.