public class Cell3
Represents a single 3D voronoi cell.

Constructors

Cell3

#
public Cell3(Cell3 other)
other (Cell3)

Cell3

#
public Cell3(Point3d center, Box box)
center (Point3d)
box (Box)

Properties

AngleTolerance

#
public double AngleTolerance { get; }

BoundaryCount

#
public int BoundaryCount { get; }
Gets how many of the facets of this cell are part of the original boundary.

Center

#
public Point3d Center { get; }
Gets the center of this cell.

Facets

#
public List<Cell3Facet> Facets { get; }
Gets the facets of this cell. Do not modify this list or you'll make the cell invalid.

Tolerance

#
public double Tolerance { get; set; }
Gets or sets the tolerance for this cell.

Methods

MidPlane

#
public static Plane MidPlane(Point3d A, Point3d B)
Compute the mid-plane between two points. Points must not be coincident.
A (Point3d)First point (below the plane)
B (Point3d)Second point (above the plane)
Midplane.

Slice

#
public void Slice(IEnumerable<Point3d> pt)
Slice this cell using a collection of neighbouring points.
pt (IEnumerable<Point3d>)Neighbouring point.

Slice

#
public void Slice(Plane section)
Slice this cell with a plane. Everything underneath the section XY plane will be discarded.
section (Plane)Slicing section.

Slice

#
public void Slice(Point3d pt)
Slice this cell using a neighbouring point.
pt (Point3d)Neighbouring point.

Slice

#
public void Slice(Point3d[] pt)
Slice this cell using a collection of neighbouring points.
pt (Point3d[])Neighbouring point.

ToBrep

#
public Brep ToBrep()
Convert the cell to a closed brep.