/// sample the span unfirormly with tolerance sampling // this samples the Span and pushes the corresponding sampled points to bdc private void sample_span(Span span) { Debug.Assert(sampling > 0.0); uint num_steps = (uint)(span.length2d() / sampling + 1); for (uint i = 0; i <= num_steps; i++) { double fraction = (double)i / num_steps; Point ptmp = span.getPoint(fraction); CLPoint p = new CLPoint(ptmp.x, ptmp.y, ptmp.z); p.z = minimumZ; subOp[0].appendPoint(p); if (p != null) { p.Dispose(); } } }