public void Test()
        {
            var tracer = new ContourTracer();

            var map = new DepthMap(10, 10);
            map[6, 6] = 100;
            map[5, 5] = 100;
            map[6, 5] = 100;
            map[4, 5] = 100;
            map[3, 5] = 100;
            map[4, 4] = 100;
            map[5, 4] = 100;
            map[6, 4] = 100;
            map[4, 3] = 100;
            map[5, 3] = 100;
            map[6, 3] = 100;
            map[5, 2] = 100;

            var result = tracer.GetContourPoints(map);

            Assert.IsTrue(!result.Contains(new Point(5, 4, 100)));
        }
Exemple #2
0
 public ContourFactory(float lineThinningDistance)
 {
     this.tracer = new ContourTracer();
     this.thinner = new LineThinner(lineThinningDistance, false);
 }
Exemple #3
0
 public ContourFactory(float lineThinningDistance, int maximumRetraceSteps)
 {
     this.scanner = new ContourScanner();
     this.tracer  = new ContourTracer(maximumRetraceSteps);
     this.thinner = new LineThinner(lineThinningDistance, false);
 }
 public ContourFactory(float lineThinningDistance, int maximumRetraceSteps)
 {
     this.scanner = new ContourScanner();
     this.tracer = new ContourTracer(maximumRetraceSteps);
     this.thinner = new LineThinner(lineThinningDistance, false);
 }
Exemple #5
0
 public ContourFactory(float lineThinningDistance)
 {
     this.tracer  = new ContourTracer();
     this.thinner = new LineThinner(lineThinningDistance, false);
 }