UtilityEx.GetEntitiesStats (IList<Entity>, BlockKeyedCollection, out Int32, out Int32, out Int32, Dictionary<BlockDictionary<TypeInt32>>) Method
Public Shared Function GetEntitiesStats( _
ByVal entityList As IList(Of Entity), _
ByVal blocks As BlockKeyedCollection, _
ByRef entitiesCount As Integer, _
ByRef verticesCount As Integer, _
ByRef trianglesCount As Integer, _
Optional ByVal blocksDetails As Dictionary(Of Block, Dictionary(Of Type, Integer)) = null _
) As Dictionary(Of Type, Integer)
This language is not supported or no code example is available.
public static Dictionary<Type, int> GetEntitiesStats(
IList<Entity> entityList,
BlockKeyedCollection blocks,
out int entitiesCount,
out int verticesCount,
out int trianglesCount,
Dictionary<Block, Dictionary<Type, int>> blocksDetails = null
)
This language is not supported or no code example is available.
Parameters
The collection of entities
- blocks
- BlockKeyedCollection
The blocks to process.
- entitiesCount
- int
The count of all the entities.
- verticesCount
- int
The count of all the vertices.
- trianglesCount
- int
The count of all the triangles.
- blocksDetails
- Dictionary<Block, Dictionary<Type, int>>
The dictionary with the entities details about blocks. Optional, can be null/Nothing.
Return Value
Dictionary<Type, int>The dictionary with the count of each entity's type.
The entities inside the blocks are processed only for the counting of vertices and triangles.