Delaunay.Edge.MakeDelaunayLineBmp C# (CSharp) Method

MakeDelaunayLineBmp() private method

private MakeDelaunayLineBmp ( ) : BitmapData
return BitmapData
        internal BitmapData MakeDelaunayLineBmp()
        {
            throw new NotImplementedException();
            //var p0 = leftSite.coord;
            //Vector2 p1 = rightSite.coord;

            //GRAPHICS.clear();
            //// clear() resets line style back to undefined!
            //GRAPHICS.lineStyle(0, 0, 1.0, false, LineScaleMode.NONE, CapsStyle.NONE);
            //GRAPHICS.moveTo(p0.x, p0.y);
            //GRAPHICS.lineTo(p1.x, p1.y);

            //int w = int(Math.Ceiling(Math.Max(p0.x, p1.x)));
            //if (w < 1)
            //{
            //    w = 1;
            //}
            //int h = int(Math.Ceiling(Math.Max(p0.y, p1.y)));
            //if (h < 1)
            //{
            //    h = 1;
            //}
            //BitmapData bmp = new BitmapData(w, h, true, 0);
            //bmp.draw(LINESPRITE);
            //return bmp;
        }

Usage Example

コード例 #1
0
 static bool MyTest(Edge edge, int index, List<Edge> vector)
 {
     BitmapData delaunayLineBmp = edge.MakeDelaunayLineBmp();
     bool notIntersecting = !(_keepOutMask.hitTest(zeroPointF, 1, delaunayLineBmp, zeroPointF, 1));
     delaunayLineBmp.dispose();
     return notIntersecting;
 }
All Usage Examples Of Delaunay.Edge::MakeDelaunayLineBmp