MLMeshing
Public Methods
LevelOfDetail DensityToLevelOfDetail
Step the Level of detail to Minimum, Medium and Maximum
public static LevelOfDetail DensityToLevelOfDetail(
float density
)
Parameters
Type | Name | Description |
---|---|---|
float | density | float input value |
Returns:
float LevelOfDetailToDensity
Convert a LevelOfDetail to a float, ranged between 0 and 1
public static float LevelOfDetailToDensity(
LevelOfDetail lod
)
Parameters
Type | Name | Description |
---|---|---|
LevelOfDetail | lod | Level of detail |
Returns: Float value between 0 and 1
delegate MeshingSubsystem.Extensions.MLMeshing.MeshBlockRequest [] OnMeshBlockRequests
public delegate MeshingSubsystem.Extensions.MLMeshing.MeshBlockRequest [] OnMeshBlockRequests(
MeshingSubsystem.Extensions.MLMeshing.MeshBlockInfo [] blockInfos
)
Parameters
Type | Name | Description |
---|---|---|
MeshingSubsystem.Extensions.MLMeshing.MeshBlockInfo [] | blockInfos | Representation of a mesh block. |
Public Enums
LevelOfDetail
Level of detail of the block mesh.
Enumerator | Value | Description |
---|---|---|
Minimum | Minimum Level of Detail (LOD) for the mesh. | |
Medium | Medium Level of Detail (LOD) for the mesh. | |
Maximum | Maximum Level of Detail (LOD) for the mesh. |
MeshState
State of a block mesh.
Enumerator | Value | Description |
---|---|---|
New | Mesh has been created. | |
Updated | Mesh has been updated. | |
Deleted | Mesh has been deleted. | |
Unchanged | Mesh is unchanged. |