Geometry > Geometry Object Information > Geometric Entity Counters

Geometric Entity Counters
The following geometric entity counter methods are available:
getNEntities returns a vector of length 2 in 1D, length 3 in 2D, and length 4 in 3D. The vectors contain the number of geometric entities for each entity dimension. The methods getNVertices, getNEdges, getNFaces, getNBoundaries, and getNDomains return the number of entities of the specified type.
getNEntitiesMesh returns a vector of length 2 in 1D, length 3 in 2D, and length 4 in 3D. The vectors contain the number of geometric entities for each entity dimension in the geometry used for meshing. If there are no mesh control entities in the geometry, the output is identical to that of getNEntities.