Class SpatialNodeSet
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Spatial set for scene nodes. Flat rather than hierarchical: relocating a node is six float stores and culling is a linear pass over bounds laid out for SIMD.
public class SpatialNodeSetInheritance
object ← SpatialNodeSet
Properties
Count
Gets the number of nodes in the set.
public int Count { get; }Property Value
int
Dirty
Gets or sets whether the set needs rebuilding from the scene's node list.
public bool Dirty { get; set; }Property Value
bool
Methods
Clear()
Removes every node from the set.
public void Clear()FindContaining(Vector3)
Returns the node with the lowest index whose bounds contain the point, or null when none do. Insert in priority order and that is the highest priority hit.
public SceneNode? FindContaining(Vector3 point)Parameters
point Vector3
The point to test against every node's bounds.
Returns
GetBounds()
Returns the bounds covering every node in the set, or an empty box when it has none.
public AABB GetBounds()Returns
Insert(SceneNode)
Adds a node to the set and records its current bounds.
public void Insert(SceneNode node)Parameters
node SceneNode
Query(Frustum, List<SceneNode>)
Appends every node whose bounds intersect the frustum, testing a vector of nodes at a time.
public void Query(Frustum frustum, List<SceneNode> results)Parameters
frustum Frustum
Query(in AABB, List<SceneNode>)
Appends every node whose bounds intersect the given box.
public void Query(in AABB bounds, List<SceneNode> results)Parameters
bounds AABB
Update(SceneNode)
Refreshes a node's stored bounds. Nodes that are not in the set, because their layer is off or the set has been rebuilt since, are ignored.
public void Update(SceneNode node)Parameters
node SceneNode

