Skip to main content
Version: 12 Dec 2024

MLMeshing

Public Methods

LevelOfDetail DensityToLevelOfDetail

Step the Level of detail to Minimum, Medium and Maximum

public static LevelOfDetail DensityToLevelOfDetail(
float density
)

Parameters

TypeNameDescription
floatdensityfloat input value

Returns:


float LevelOfDetailToDensity

Convert a LevelOfDetail to a float, ranged between 0 and 1

public static float LevelOfDetailToDensity(
LevelOfDetail lod
)

Parameters

TypeNameDescription
LevelOfDetaillodLevel 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

TypeNameDescription
MeshingSubsystem.Extensions.MLMeshing.MeshBlockInfo []blockInfosRepresentation of a mesh block.

Public Enums

LevelOfDetail

Level of detail of the block mesh.

EnumeratorValueDescription
MinimumMinimum Level of Detail (LOD) for the mesh.
MediumMedium Level of Detail (LOD) for the mesh.
MaximumMaximum Level of Detail (LOD) for the mesh.

MeshState

State of a block mesh.

EnumeratorValueDescription
NewMesh has been created.
UpdatedMesh has been updated.
DeletedMesh has been deleted.
UnchangedMesh is unchanged.