public void ParseBeginWinding(string[] elements) { // We shouldn't be here without an open WindingCollection if (this.currentPolygonWindingCollection != null) { DSFPolygonPointWinding winding = new DSFPolygonPointWinding(); this.currentPolygonWinding = winding; } }
public void ParseEndPolygonWinding(string[] elements) { if (this.currentPolygonWindingCollection.Windings == null) { this.currentPolygonWindingCollection.Windings = new List <DSFPolygonPointWinding>(); } this.currentPolygonWindingCollection.Windings.Add(this.currentPolygonWinding); this.currentPolygonWinding = null; }