/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Scene/MeshSceneAdapter.h
Howeverevaluating spatial queries across a large set of actors / scene meshes would require testing each mesh instance one-by-one. To speed this up,BuildSpatialEvaluationCache()can be called to build an Octree across mesh instances.FSpatialCacheInfois a separate representation of each unique (actor, chlidmesh, spatial, boundingbox) tuple, a list of these is built and then inserted into an Octree.
struct FSpatialWrapperInfo
int32
NonUniformScaleCount
Number of non-uniform scales applied to this mesh by parent instances
TArray<FActorC...
ParentMeshes
List of scene mesh instances that reference this unique mehs
FMeshTypeContai...
SourceContainer
Identifier for mesh, including source pointer, mesh type, etc
TUniquePtr<IMe...
SpatialWrapper
Implementation ofIMeshSpatialWrapperfor this mesh, that provides spatial and other mesh data queriesNOTEthat eachFActorChildMeshin ParentMeshes has a pointer to this object, so if SpatialWrapper is replaced, theFActorChildMeshobjects must also be updated