Number and Types of Elements To determine the number of elements of a certain type, use int model.mesh(<tag>).stat().getNumElem(type); To get the number of elements of all types, use int model.mesh(<tag>).stat().getNumElem(); To determine the element types, use String[] model.mesh(<tag>).stat().getTypes(); If the current selection is not the entire geometry, only elements and types in the current selection is returned. You can also use the methods int model.mesh(<tag>).getNumElem(type); int model.mesh(<tag>).getNumElem(); String[] model.mesh(<tag>).getTypes(); to obtain information about the entire geometry.