Class ModelLODBase
Base class for mesh LOD objects. Contains a collection of the meshes.
Inherited Members
ModelLODBase
Assembly: FlaxEngine.dll
File: Engine/Content/Assets/ModelBase.h
Syntax
public class ModelLODBase : public ScriptingObject
Constructors
ModelLODBase(const SpawnParams& params)
Declaration
protected ModelLODBase(const SpawnParams& params)
Parameters
SpawnParams
params
|
Fields
_lodIndex
Declaration
protected int32 _lodIndex = 0
Field Value
int32
|
ScreenSize
The screen size to switch LODs. Bottom limit of the model screen size to render this LOD.
Declaration
public float ScreenSize = 1.0f
Field Value
float
|
Methods
GetBox()
Gets the bounding box combined for all meshes in this model LOD.
Declaration
public BoundingBox GetBox() const
Returns
BoundingBox
|
GetBox(const Matrix& world)
Get model bounding box in transformed world matrix.
Declaration
public BoundingBox GetBox(const Matrix& world) const
Parameters
Matrix
world
World matrix |
Returns
BoundingBox
Bounding box |
GetBox(const Transform& transform, const class MeshDeformation* deformation=nullptr)
Get model bounding box in transformed world.
Declaration
public BoundingBox GetBox(const Transform& transform, const class MeshDeformation* deformation=nullptr) const
Parameters
Transform
transform
The instance transformation. |
class MeshDeformation
deformation
The meshes deformation container (optional). |
Returns
BoundingBox
Bounding box |
GetLODIndex()
Gets the model LOD index.
Declaration
public int32 GetLODIndex() const
Returns
int32
|
GetMesh(int32 index)
Gets the specific mesh in this LOD.
Declaration
public virtual MeshBase* GetMesh(int32 index) const = 0
Parameters
int32
index
|
Returns
MeshBase
|
GetMeshes(Array<const MeshBase* >& meshes)
Gets the meshes in this LOD.
Declaration
public virtual void GetMeshes(Array<const MeshBase* >& meshes) const = 0
Parameters
Array<MeshBase >
meshes
|
GetMeshes(Array<MeshBase* >& meshes)
Gets the meshes in this LOD.
Declaration
public virtual void GetMeshes(Array<MeshBase* >& meshes) = 0
Parameters
Array<MeshBase >
meshes
|
GetMeshesCount()
Gets the amount of meshes in this LOD.
Declaration
public virtual int32 GetMeshesCount() const = 0
Returns
int32
|
HasAnyMeshInitialized()
Determines whether any mesh has been initialized.
Declaration
public bool HasAnyMeshInitialized() const
Returns
bool
|