public void addDiscontinuityRangeAtEnd(SimpleRange newDisRange) { int zIndex = trapezoid.span.extent(); //not minus one since this is new this.zHeightRanges[zIndex] = newDisRange; this.trapezoid.endRange = SimpleRange.Average(this.trapezoid.endRange, newDisRange); this.trapezoid.span.range++; assertSpanDebug(); }
public void addDiscontinuityRangeAtStart(SimpleRange newDisRange) { int zIndex = trapezoid.span.start - 1; this.zHeightRanges[zIndex] = newDisRange; this.trapezoid.endRange = SimpleRange.Average(this.trapezoid.startRange, newDisRange); this.trapezoid.span.range++; this.trapezoid.span.start--; assertSpanDebug(); }