C# Class MeshCutter, virtual-loom

Afficher le fichier Open project: silknow/virtual-loom Class Usage Examples

Méthodes publiques

Méthode Description
GetFirstVertex ( ) : Vector3,
MeshCutter ( int initialArraySize ) : System.Collections
SliceMesh ( Mesh mesh, Plane &slice ) : bool

Slice a mesh by the slice plane. We assume the plane is already in the mesh's local coordinate frame Returns posMesh and negMesh, which are the resuling meshes on both sides of the plane (posMesh on the same side as the plane's normal, negMesh on the opposite side)

Private Methods

Méthode Description
AddTriangle ( List, face, int t1, int t2, int t3 ) : void
FillBoundaryFace ( List, added ) : void
FillBoundaryGeneral ( List, added ) : void
FindRealPolygon ( List, pairs ) : List

Extract polygon from the pairs of vertices. Per example, two vectors that are colinear is redundant and only forms one side of the polygon

Method Details

GetFirstVertex() public méthode

public GetFirstVertex ( ) : Vector3,
Résultat Vector3,

MeshCutter() public méthode

public MeshCutter ( int initialArraySize ) : System.Collections
initialArraySize int
Résultat System.Collections

SliceMesh() public méthode

Slice a mesh by the slice plane. We assume the plane is already in the mesh's local coordinate frame Returns posMesh and negMesh, which are the resuling meshes on both sides of the plane (posMesh on the same side as the plane's normal, negMesh on the opposite side)
public SliceMesh ( Mesh mesh, Plane &slice ) : bool
mesh Mesh
slice Plane
Résultat bool