This project is read-only.

BoundaryHelperBox2d.Tesselate Only Works with Whole Numbers (for a Line)


Ok, update to this, I changed the title because I found exactly where in the source this fails. I have the following Line(). Tesselate fails on line number 323 as the this.Combine(rays) method on that line either doesn't have enough or the right kind of rays and therefore a shape is never created.
        _line = new Line();
        _line.X1 = 224; _line.Y1 = 224.5; _line.X2 = 155; _line.Y2 = 224.5;
        _line.Stroke = new SolidColorBrush(Colors.Black);
However, the following line does work, notice the .5 difference for both Y values. Making just that change back to a whole number and it works fine.
        _line = new Line();
        _line.X1 = 224; _line.Y1 = 224; _line.X2 = 155; _line.Y2 = 224;
        _line.Stroke = new SolidColorBrush(Colors.Black);
I'm using the following .zip and creating a line in addition to an ellipse. Now, the line gets created in both cases above in the bug, but only the one with whole numbers actually bounces the ellipse off of it.
That was found here