C# Class hyades.ShapeBuilder

显示文件 Open project: zfedoran/bubblebound

Public Methods

Method Description
GetShape ( Matrix &transform, Plane p ) : Vector2[]
IntersectPlane ( Plane p, List vertices, List indices, List &points, List &lines ) : void
ShapeBuilder ( Model model ) : System
Transform ( Matrix &transform, List vertices ) : List

Private Methods

Method Description
CreateShape ( List vertices, List lines, float epsilon ) : List
IntersectSegmentPlane ( Vector3 a, Vector3 b, Plane p, Vector3 &q ) : bool
PolygonReduce ( List shape, float distance ) : List
Same ( Vector3 a, Vector3 b, float epsilon ) : bool
ShapeBuilder ( ) : System

Method Details

GetShape() public method

public GetShape ( Matrix &transform, Plane p ) : Vector2[]
transform Matrix
p Plane
return Vector2[]

IntersectPlane() public static method

public static IntersectPlane ( Plane p, List vertices, List indices, List &points, List &lines ) : void
p Plane
vertices List
indices List
points List
lines List
return void

ShapeBuilder() public method

public ShapeBuilder ( Model model ) : System
model Microsoft.Xna.Framework.Graphics.Model
return System

Transform() public static method

public static Transform ( Matrix &transform, List vertices ) : List
transform Matrix
vertices List
return List