a2a6d8c839
Add factory for Voronoi mesh entities (reduces allocations in SimpleSmoother) Fix issue #10959 git-svn-id: https://triangle.svn.codeplex.com/svn@77246 0e2699bc-83d4-4a8f-98e7-55e24ab8c7a5
19 lines
398 B
C#
19 lines
398 B
C#
|
|
namespace TriangleNet.Voronoi
|
|
{
|
|
using TriangleNet.Topology.DCEL;
|
|
|
|
public interface IVoronoiFactory
|
|
{
|
|
void Initialize(int vertexCount, int edgeCount, int faceCount);
|
|
|
|
void Reset();
|
|
|
|
Vertex CreateVertex(double x, double y);
|
|
|
|
HalfEdge CreateHalfEdge(Vertex origin, Face face);
|
|
|
|
Face CreateFace(Geometry.Vertex vertex);
|
|
}
|
|
}
|