C# Class HMesh, UnityUtils

Exibir arquivo Open project: mortennobel/UnityUtils Class Usage Examples

Public Methods

Method Description
Build ( Mesh mesh ) : void
Build ( Mesh mesh, Matrix4x4 transform ) : void
Clear ( ) : void
Copy ( ) : HMesh,
CreateFace ( ) : Face,
CreateHalfedge ( ) : Halfedge,
CreateTestMesh ( ) : HMesh,
CreateTestMeshQuad ( ) : HMesh,
CreateTestMeshTriangle ( ) : HMesh,
CreateTriangle ( Vector3 p1, Vector3 p2, Vector3 p3 ) : Face,
CreateVertex ( ) : Vertex,
CreateVertex ( Vector3 p ) : Vertex,
Destroy ( Face, face ) : bool
Destroy ( Halfedge, halfedge ) : bool
Destroy ( Vertex, vertex ) : bool
Export ( ) : Mesh
GetFaces ( ) : HashSet
GetHalfedges ( ) : HashSet
GetVertices ( ) : HashSet
HMesh ( ) : System.Collections
IsValid ( ) : bool

Private Methods

Method Description
EdgeKey ( int vertex1, int vertex2 ) : uint

Method Details

Build() public method

public Build ( Mesh mesh ) : void
mesh Mesh
return void

Build() public method

public Build ( Mesh mesh, Matrix4x4 transform ) : void
mesh Mesh
transform Matrix4x4
return void

Clear() public method

public Clear ( ) : void
return void

Copy() public method

public Copy ( ) : HMesh,
return HMesh,

CreateFace() public method

public CreateFace ( ) : Face,
return Face,

CreateHalfedge() public method

public CreateHalfedge ( ) : Halfedge,
return Halfedge,

CreateTestMesh() public static method

public static CreateTestMesh ( ) : HMesh,
return HMesh,

CreateTestMeshQuad() public static method

public static CreateTestMeshQuad ( ) : HMesh,
return HMesh,

CreateTestMeshTriangle() public static method

public static CreateTestMeshTriangle ( ) : HMesh,
return HMesh,

CreateTriangle() public method

public CreateTriangle ( Vector3 p1, Vector3 p2, Vector3 p3 ) : Face,
p1 Vector3
p2 Vector3
p3 Vector3
return Face,

CreateVertex() public method

public CreateVertex ( ) : Vertex,
return Vertex,

CreateVertex() public method

public CreateVertex ( Vector3 p ) : Vertex,
p Vector3
return Vertex,

Destroy() public method

public Destroy ( Face, face ) : bool
face Face,
return bool

Destroy() public method

public Destroy ( Halfedge, halfedge ) : bool
halfedge Halfedge,
return bool

Destroy() public method

public Destroy ( Vertex, vertex ) : bool
vertex Vertex,
return bool

Export() public method

public Export ( ) : Mesh
return Mesh

GetFaces() public method

public GetFaces ( ) : HashSet
return HashSet

GetHalfedges() public method

public GetHalfedges ( ) : HashSet
return HashSet

GetVertices() public method

public GetVertices ( ) : HashSet
return HashSet

HMesh() public method

public HMesh ( ) : System.Collections
return System.Collections

IsValid() public method

public IsValid ( ) : bool
return bool