public Triangulator(List <Point> polyLine) { polygons = new List <List <Point> >(); trapezoids = new List <Trapezoid>(); xMonoPoly = new List <MonotoneMountain>(); edgeList = initEdges(polyLine); trapezoidalMap = new TrapezoidalMap(); boundingBox = trapezoidalMap.boundingBox(edgeList); queryGraph = new QueryGraph(Sink.isink(boundingBox)); process(); }
public Triangulator(List <Point> polyLine, float sheer) { _sheer = sheer; Triangles = new List <List <Point> >(); Trapezoids = new List <Trapezoid>(); _xMonoPoly = new List <MonotoneMountain>(); _edgeList = InitEdges(polyLine); _trapezoidalMap = new TrapezoidalMap(); _boundingBox = _trapezoidalMap.BoundingBox(_edgeList); _queryGraph = new QueryGraph(Sink.Isink(_boundingBox)); Process(); }