Class Polygon3D
- Namespace
- HelixToolkit.Geometry
- Assembly
- HelixToolkit.Geometry.dll
Represents a 3D polygon.
public sealed class Polygon3D
- Inheritance
-
Polygon3D
- Inherited Members
Constructors
Polygon3D()
Initializes a new instance of the Polygon3D class.
public Polygon3D()
Polygon3D(IList<Vector3>)
Initializes a new instance of the Polygon3D class.
public Polygon3D(IList<Vector3> pts)
Parameters
Properties
Points
Gets or sets the points.
public IList<Vector3> Points { get; set; }
Property Value
Methods
Flatten()
Flattens this polygon.
public Polygon Flatten()
Returns
- Polygon
The 2D polygon.
GetNormal()
Gets the normal of the polygon.
public Vector3 GetNormal()
Returns
- Vector3
The normal.
IsPlanar()
Determines whether this polygon is planar.
public bool IsPlanar()
Returns
- bool
The is planar.