Class ConvexHull<TVertex, TFace>
Representation of a convex hull.
Namespace: NWH.DWP2.MiConvexHull
Assembly: NWH.DWP2.dll
Syntax
public class ConvexHull<TVertex, TFace> where TVertex : IVertex where TFace : ConvexFace<TVertex, TFace>, new()
Type Parameters
| Name | Description |
|---|---|
| TVertex | The type of the t vertex. |
| TFace | The type of the t face. |
Properties
| Edit this page View SourceFaces
Faces of the convex hull.
Declaration
public IEnumerable<TFace> Faces { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<TFace> | The faces. |
Points
Vertices of the convex hull.
Declaration
public IEnumerable<TVertex> Points { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<TVertex> | The points. |
Methods
| Edit this page View SourceCreate(IList<TVertex>, double)
Creates the convex hull.
Declaration
public static ConvexHull<TVertex, TFace> Create(IList<TVertex> data, double PlaneDistanceTolerance)
Parameters
| Type | Name | Description |
|---|---|---|
| IList<TVertex> | data | The data. |
| double | PlaneDistanceTolerance | The plane distance tolerance. |
Returns
| Type | Description |
|---|---|
| ConvexHull<TVertex, TFace> | ConvexHull<TVertex, TFace>. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | The supplied data is null. |
| ArgumentNullException | data |