Table of Contents

Class Plane

Namespace
FemDesign.Geometry
Assembly
FemDesign.Core.dll
public class Plane
Inheritance
Plane
Inherited Members
Extension Methods

Constructors

Plane()

public Plane()

Plane(Point3d, Point3d, Point3d)

Construct a plane by three points: origin, p1 and p2.

public Plane(Point3d origin, Point3d p1, Point3d p2)

Parameters

origin Point3d
p1 Point3d
p2 Point3d

Plane(Point3d, Vector3d, Vector3d)

Construct a plane by origin, x- and y-direction.

public Plane(Point3d origin, Vector3d xDir, Vector3d yDir)

Parameters

origin Point3d
xDir Vector3d
yDir Vector3d

Fields

_localX

public Vector3d _localX

Field Value

Vector3d

Do not set. Should be private.

_localY

public Vector3d _localY

Field Value

Vector3d

Do not set. Should be private.

Properties

LocalX

public Vector3d LocalX { get; }

Property Value

Vector3d

LocalY

public Vector3d LocalY { get; }

Property Value

Vector3d

LocalZ

public Vector3d LocalZ { get; }

Property Value

Vector3d

Normal vector of the plane with length 1

Origin

public Point3d Origin { get; set; }

Property Value

Point3d

XY

public static Plane XY { get; }

Property Value

Plane

XY-plane

XZ

public static Plane XZ { get; }

Property Value

Plane

XZ-plane

YZ

public static Plane YZ { get; }

Property Value

Plane

YZ-plane

Methods

AlignYAroundXToGcs()

Align plane Y-dir to GCS by rotating around plane X-dir

public void AlignYAroundXToGcs()

FlipPlane()

public void FlipPlane()

ProjectPointOnPlane(Point3d)

Project point on plane

public Point3d ProjectPointOnPlane(Point3d p)

Parameters

p Point3d

Returns

Point3d

Closest point to the p on the plane.

SetXAroundZ(Vector3d)

Set X-dir of plane to input vector by rotating around plane normal.

public void SetXAroundZ(Vector3d v)

Parameters

v Vector3d

SetYAroundX(Vector3d)

Set Y-dir of plane to input vector by rotating around plane X-dir.

public void SetYAroundX(Vector3d v)

Parameters

v Vector3d

SetYAroundZ(Vector3d)

Set Y-Dir of plane to input vector by rotating around plane normal.

public void SetYAroundZ(Vector3d v)

Parameters

v Vector3d

SetZAroundX(Vector3d)

Align normal of plane to input vector by rotating around plane X-dir.

public void SetZAroundX(Vector3d v)

Parameters

v Vector3d

Operators

implicit operator Plane(Point3d)

Implicity convert FdPoint to a FdCoordinateSystem. Local axis are set to Global X and Global Y.

public static implicit operator Plane(Point3d point)

Parameters

point Point3d

Returns

Plane