public class Facet
Immutable voronoi facet.

Constructors

Facet

#
public Facet(Point3d origin, IEnumerable<Point3d> vertices)
Create a new facet.
origin (Point3d)Origin, must be coplanar with the vertices.
vertices (IEnumerable<Point3d>)Vertices, must be a coplanar collection of at least three points.

Properties

Centroid

#
public Point3d Centroid { get; }
Gets the edge centroid of this facet.

Origin

#
public Point3d Origin { get; }
Gets the origin of this facet.

Plane

#
public Plane Plane { get; }
Gets the plane of this facet.

Radius

#
public double Radius { get; }
Gets the radius of this facet.

Vertices

#
public Point3d[] Vertices { get; }
Gets the vertices of this facet in world coordinates.

Methods

Clean

#
public Facet Clean(double tolerance)
Remove coincident points within tolerance.
tolerance (double)Tolerance to use.
Cleaned facet.

ToMesh

#
public Mesh ToMesh(bool includeOrigin)
Creates a mesh from this facet.
includeOrigin (bool)If true, the origin point is included in the mesh.
Mesh

ToPolyline

#
public Polyline ToPolyline()
Create a polyline from this facet.
A polyline.