Language:
Discover
By Skill Level
By Category

FLODCluster

Choose your OS:

Syntax

struct FLODCluster

Remarks

This is a LOD cluster struct that holds list of actors with relevant information

http:///deim.urv.cat/~rivi/pub/3d/icra04b.pdf

This is used by Hierarchical LOD Builder to generates list of clusters that are together in vicinity and build as one actor

Variables

Name Description

Public variable

TArray < AActor ...

 

Actors

Member variable

Public variable

FSphere

 

Bound

Cluster bounds

Public variable

float

 

ClusterCost

Cached cluster cost, FMath::Pow / FillingFactor

Public variable

float

 

FillingFactor

Filling factor for this cluster, determines how much of the cluster's bounds/area is occupied by the contained actors

Constructors

Name Description

Public function

FLODCluster()

Public function

FLODCluster

(
    const FLODCluster & Other
)

Constructors

Public function

FLODCluster

(
    AActor * Actor1
)

Public function

FLODCluster

(
    AActor * Actor1,
    AActor * Actor2
)

Functions

Name Description

Public function

ALODActor &#...

 

BuildActor

(
    ULevel * InLevel,
    const int32 LODIdx,
    const bool bCreateMeshes
)

If criteria matches, build new LODActor and replace current Actors with that.

Public function

bool

 

Contains

(
    FLODCluster & Other
)

Compare clusters and returns true when this contains any of Other's actors

Public function

void

 

ExtractStaticMeshComponentsFromLODActor

(
    AActor * Actor,
    TArray < UStaticMeshComponent * ...
)

Recursively retrieves StaticMeshComponents from a LODActor and its child LODActors

Public function

const float

 

GetCost()

Return cost of the cluster, lower is better

Public function

void

 

Invalidate()

Invalidates this cluster

Public function

bool

 

IsValid()

Returns whether or not this cluster is valid

Public function

FString

 

ToString()

Returns data/info for this Cluster as a string

Operators

Name Description

Public function

FLODCluster

 

operator-

(
    const FLODCluster & Other
)

Public function

FLODCluster

 

operator+

(
    const FLODCluster & Other
)

Cluster operators

Public function

FLODCluster

 

operator+=

(
    const FLODCluster & Other
)

Public function

FLODCluster ...

 

operator=

(
    const FLODCluster & Other
)

Public function

FLODCluster

 

operator-=

(
    const FLODCluster & Other
)

Public function

bool

 

operator==

(
    const FLODCluster & Other
)

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/LODCluster.h