C# Класс MeshCutter, virtual-loom

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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)

Приватные методы

Метод Описание
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

Описание методов

GetFirstVertex() публичный Метод

public GetFirstVertex ( ) : Vector3,
Результат Vector3,

MeshCutter() публичный Метод

public MeshCutter ( int initialArraySize ) : System.Collections
initialArraySize int
Результат System.Collections

SliceMesh() публичный Метод

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
Результат bool