Class MeshEmitter
Inheritance
System.Object
MeshEmitter
Assembly: Sylves.dll
Syntax
public class MeshEmitter : Object
Constructors
MeshEmitter(MeshData)
Declaration
public MeshEmitter(MeshData originalData)
Parameters
Type |
Name |
Description |
MeshData |
originalData |
|
Fields
vertices
Declaration
public List<Vector3> vertices
Field Value
Type |
Description |
System.Collections.Generic.List<Vector3> |
|
Methods
AddFace(Int32, Int32, Int32)
Declaration
public void AddFace(int i1, int i2, int i3)
Parameters
Type |
Name |
Description |
System.Int32 |
i1 |
|
System.Int32 |
i2 |
|
System.Int32 |
i3 |
|
AddFace(Int32, Int32, Int32, Int32)
Declaration
public void AddFace(int i1, int i2, int i3, int i4)
Parameters
Type |
Name |
Description |
System.Int32 |
i1 |
|
System.Int32 |
i2 |
|
System.Int32 |
i3 |
|
System.Int32 |
i4 |
|
AddSubmesh(List<Int32>, MeshTopology)
Declaration
public void AddSubmesh(List<int> indices, MeshTopology meshTopology)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Int32> |
indices |
|
MeshTopology |
meshTopology |
|
AddVertex(Vector3, Nullable<Vector2>, Nullable<Vector3>, Nullable<Vector4>)
Declaration
public int AddVertex(Vector3 v, Nullable<Vector2> uv = null, Nullable<Vector3> normal = null, Nullable<Vector4> tangent = null)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Average(IEnumerable<Int32>)
Declaration
public int Average(IEnumerable<int> indices)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Int32> |
indices |
|
Returns
Type |
Description |
System.Int32 |
|
Average(IEnumerable<Int32>, MeshData)
Declaration
public int Average(IEnumerable<int> indices, MeshData meshData)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Int32> |
indices |
|
MeshData |
meshData |
|
Returns
Type |
Description |
System.Int32 |
|
Average(Int32, Int32)
Declaration
public int Average(int i1, int i2)
Parameters
Type |
Name |
Description |
System.Int32 |
i1 |
|
System.Int32 |
i2 |
|
Returns
Type |
Description |
System.Int32 |
|
CopyAllVertices()
Declaration
public void CopyAllVertices()
EndSubMesh()
Declaration
StartSubmesh(MeshTopology)
Declaration
public void StartSubmesh(MeshTopology meshTopology)
Parameters
ToMeshData()
Declaration
public MeshData ToMeshData()
Returns