The number of material ID's likely has nothing to do with the actual number of surfaces you have. Use countsurfaces to dtermine how many surfaces a mesh has. And use countchildren to dtermine if your mesh is comprised of more than one entity, each of which can have it's own children, so you'll need to write arecursive function to make sure you count them all.
Each entity that has polygons, has at least one surface. And each entity can have children that will each have at least one surface and may have children with their own surfaces.
The only way to be sure is to check. You don't have to write a recusrive function to count the children though if you determine that the main entity has no children.
Each entity that has polygons, has at least one surface. And each entity can have children that will each have at least one surface and may have children with their own surfaces.
The only way to be sure is to check. You don't have to write a recusrive function to count the children though if you determine that the main entity has no children.