UtilityEx.CountNodes Method

Computes the scene graph inventory.
Public Shared Sub CountNodes( _ 
ByVal entList As IList(Of Entity), _ 
ByVal blocks As BlockKeyedCollection, _ 
ByRef fullNodeCount As Integer, _ 
ByRef emptyNodeCount As Integer, _ 
ByRef totalObjectCount As Integer
)
This language is not supported or no code example is available.
public static void CountNodes( 
IList<Entity> entList
BlockKeyedCollection blocks
out int fullNodeCount
out int emptyNodeCount
out int totalObjectCount 
)
This language is not supported or no code example is available.

Parameters

entList
IList<Entity>

The entity collection

blocks
BlockKeyedCollection

The block collection

fullNodeCount
int

Total number of tree nodes that contain -at least- one object (leaf)

emptyNodeCount
int

Total number of tree nodes that don't contains any object

totalObjectCount
int

Total number of objects in the scene, if leaf nodes always contain only one object, it is equal to fullNodeCount.

.NET Framework

Supported in: 4.8

In this article

Definition