hyades.ShapeBuilder.GetShape C# (CSharp) Method

GetShape() public method

public GetShape ( Matrix &transform, Plane p ) : Vector2[]
transform Matrix
p Plane
return Vector2[]
        public Vector2[] GetShape(ref Matrix transform, Plane p)
        {
            List<Vector3> points;
            List<Line> lines;

            IntersectPlane(p, Transform(ref transform, vertices), indices, out points, out lines);

            return PolygonReduce(CreateShape(points, lines, 0.0001f), 0.3f).ToArray();
        }