Ejemplo n.º 1
0
 public Triangulator(List <Point> polyLine, FP sheer)
 {
     this._sheer          = sheer;
     this.Triangles       = new List <List <Point> >();
     this.Trapezoids      = new List <Trapezoid>();
     this._xMonoPoly      = new List <MonotoneMountain>();
     this._edgeList       = this.InitEdges(polyLine);
     this._trapezoidalMap = new TrapezoidalMap();
     this._boundingBox    = this._trapezoidalMap.BoundingBox(this._edgeList);
     this._queryGraph     = new QueryGraph((Node)Sink.Isink(this._boundingBox));
     this.Process();
 }
Ejemplo n.º 2
0
        public Triangulator(List <Point> polyLine, FP 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();
        }