Class MyIsoMesh
Inheritance
System.Object
MyIsoMesh
Assembly: VRage.Game.dll
Syntax
public sealed class MyIsoMesh : Object
Constructors
MyIsoMesh()
Declaration
Fields
CellEnd
Declaration
Field Value
Cells
Declaration
public readonly MyList<Vector3I> Cells
Field Value
Type |
Description |
VRage.Library.Collections.MyList<Vector3I> |
|
CellStart
Declaration
public Vector3I CellStart
Field Value
ColorShiftHSV
Declaration
public readonly MyList<uint> ColorShiftHSV
Field Value
Type |
Description |
VRage.Library.Collections.MyList<System.UInt32> |
|
Densities
Declaration
public readonly MyList<sbyte> Densities
Field Value
Type |
Description |
VRage.Library.Collections.MyList<System.SByte> |
|
Lod
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Materials
Declaration
public readonly MyList<byte> Materials
Field Value
Type |
Description |
VRage.Library.Collections.MyList<System.Byte> |
|
Normals
Declaration
public readonly MyList<Vector3> Normals
Field Value
Type |
Description |
VRage.Library.Collections.MyList<Vector3> |
|
PositionOffset
Declaration
public Vector3D PositionOffset
Field Value
Positions
Declaration
public readonly MyList<Vector3> Positions
Field Value
Type |
Description |
VRage.Library.Collections.MyList<Vector3> |
|
PositionScale
Declaration
public Vector3 PositionScale
Field Value
Triangles
Declaration
public readonly MyList<MyVoxelTriangle> Triangles
Field Value
Type |
Description |
VRage.Library.Collections.MyList<VRage.Game.Voxels.MyVoxelTriangle> |
|
Properties
Size
Declaration
public Vector3I Size { get; }
Property Value
TrianglesCount
Declaration
public int TrianglesCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
VerticesCount
Declaration
public int VerticesCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Clear()
Declaration
CopyFromNative(VrVoxelMesh)
Declaration
public void CopyFromNative(VrVoxelMesh vrMesh)
Parameters
Type |
Name |
Description |
VRage.Voxels.VrVoxelMesh |
vrMesh |
|
FromNative(VrVoxelMesh)
Declaration
public static MyIsoMesh FromNative(VrVoxelMesh nativeMesh)
Parameters
Type |
Name |
Description |
VRage.Voxels.VrVoxelMesh |
nativeMesh |
|
Returns
GetUnpackedPosition(Int32, out Vector3)
Declaration
public void GetUnpackedPosition(int idx, out Vector3 position)
Parameters
Type |
Name |
Description |
System.Int32 |
idx |
|
Vector3 |
position |
|
GetUnpackedVertex(Int32, out MyVoxelVertex)
Declaration
public void GetUnpackedVertex(int idx, out MyVoxelVertex vertex)
Parameters
Type |
Name |
Description |
System.Int32 |
idx |
|
VRage.Game.Voxels.MyVoxelVertex |
vertex |
|
IsEdge(ref Vector3I)
Declaration
public bool IsEdge(ref Vector3I cell)
Parameters
Returns
Type |
Description |
System.Boolean |
|
IsEmpty(MyIsoMesh)
Declaration
public static bool IsEmpty(MyIsoMesh self)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Reserve(Int32, Int32)
Declaration
public void Reserve(int vertexCount, int triangleCount)
Parameters
Type |
Name |
Description |
System.Int32 |
vertexCount |
|
System.Int32 |
triangleCount |
|
Resize(Int32, Int32)
Declaration
public void Resize(int vertexCount, int triangleCount)
Parameters
Type |
Name |
Description |
System.Int32 |
vertexCount |
|
System.Int32 |
triangleCount |
|
WriteTriangle(Int32, Int32, Int32)
Declaration
public void WriteTriangle(int v0, int v1, int v2)
Parameters
Type |
Name |
Description |
System.Int32 |
v0 |
|
System.Int32 |
v1 |
|
System.Int32 |
v2 |
|
WriteVertex(ref Vector3I, ref Vector3, ref Vector3, Byte, UInt32)
Declaration
public int WriteVertex(ref Vector3I cell, ref Vector3 position, ref Vector3 normal, byte material, uint colorShift)
Parameters
Type |
Name |
Description |
Vector3I |
cell |
|
Vector3 |
position |
|
Vector3 |
normal |
|
System.Byte |
material |
|
System.UInt32 |
colorShift |
|
Returns
Type |
Description |
System.Int32 |
|