소스 검색

rectPoints are now Point2D

Alexander Hendrich 11 년 전
부모
커밋
818fcd0db8
1개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 5
      bbiwarg/Graphics/Output2D.cs

+ 3 - 5
bbiwarg/Graphics/Output2D.cs

@@ -105,11 +105,9 @@ namespace bbiwarg.Graphics
                     {
                         int px = Math.Min(depthImage.getWidth() - 1, Math.Max(0, x + i));
                         int py = Math.Min(depthImage.getHeight() - 1, Math.Max(0, y + j));
-                        index = 3 * (py * depthImage.getWidth() + px);
-                        textureData[index + 0] = 0;
-                        textureData[index + 1] = 0;
-                        textureData[index + 2] = Int16.MaxValue;
-            
+                        Vector positon = new DenseVector(new float[] { px, py });
+                        Point2D point = new Point2D(positon, Color.Blue);
+                        point.draw(textureData, depthImage.getWidth());
                     }
                 }
             }