public class Cell2
Represents a two-dimensional voronoi diagram cell.

Constructors

Cell2

#
public Cell2()

Cell2

#
public Cell2(Node2 pt, double Radius)
pt (Node2)
Radius (double)

Cell2

#
public Cell2(Node2 pt, IEnumerable<Node2> Contour)
pt (Node2)
Contour (IEnumerable<Node2>)

Fields

C

#
public List<Node2> C

M

#
public Node2 M

Methods

Edges

#
public List<Line2> Edges()
Get a list of all the edges that decribe the boundary of this cell.

Radius

#
public double Radius()

Slice

#
public bool Slice(Line2 line)
line (Line2)

Slice

#
public bool Slice(Node2 other)
other (Node2)

SliceConvexNGon

#
public static List<Node2> SliceConvexNGon(List<Node2> V, Line2 line, Side2 side, ref bool changed)
Generic n-gon slicer. If the nodes in V do not represent a valid, convex NGon then the result will not be reliable.
V (List<Node2>)Corners of NGon
line (Line2)The line to slice with
side (Side2)Side of NGon to keep (with respect to line)
changed (ref bool)
Result. List may share Node instances with V

ToGraphicsPath

#
public GraphicsPath ToGraphicsPath()

ToPolyCurve

#
public PolyCurve ToPolyCurve(double radius)
radius (double)

ToPolyline

#
public Polyline ToPolyline()