Class DefaultVoronoiFactory
Default factory for Voronoi / DCEL mesh objects.
Inheritance
System.Object
DefaultVoronoiFactory
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEngine.Experimental.U2D.TriangleNet.Voronoi
Syntax
public class DefaultVoronoiFactory : IVoronoiFactory
Methods
CreateFace(Vertex)
Declaration
public Face CreateFace(Vertex vertex)
Parameters
Type | Name | Description |
---|---|---|
Vertex | vertex |
Returns
Type | Description |
---|---|
Face |
Implements
CreateHalfEdge(Vertex, Face)
Declaration
public HalfEdge CreateHalfEdge(Vertex origin, Face face)
Parameters
Type | Name | Description |
---|---|---|
Vertex | origin | |
Face | face |
Returns
Type | Description |
---|---|
HalfEdge |
Implements
CreateVertex(Double, Double)
Declaration
public Vertex CreateVertex(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | |
System.Double | y |
Returns
Type | Description |
---|---|
Vertex |
Implements
Initialize(Int32, Int32, Int32)
Declaration
public void Initialize(int vertexCount, int edgeCount, int faceCount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | vertexCount | |
System.Int32 | edgeCount | |
System.Int32 | faceCount |
Implements
Reset()
Declaration
public void Reset()