32 lines
635 B
C#
32 lines
635 B
C#
using TriangleNet.Geometry;
|
|
using TriangleNet.Topology.DCEL;
|
|
|
|
namespace TriangleNet.Voronoi
|
|
{
|
|
public class DefaultVoronoiFactory : IVoronoiFactory
|
|
{
|
|
public void Initialize(int vertexCount, int edgeCount, int faceCount)
|
|
{
|
|
}
|
|
|
|
public void Reset()
|
|
{
|
|
}
|
|
|
|
public TriangleNet.Topology.DCEL.Vertex CreateVertex(double x, double y)
|
|
{
|
|
return new TriangleNet.Topology.DCEL.Vertex(x, y);
|
|
}
|
|
|
|
public HalfEdge CreateHalfEdge(TriangleNet.Topology.DCEL.Vertex origin, Face face)
|
|
{
|
|
return new HalfEdge(origin, face);
|
|
}
|
|
|
|
public Face CreateFace(TriangleNet.Geometry.Vertex vertex)
|
|
{
|
|
return new Face(vertex);
|
|
}
|
|
}
|
|
}
|