@Ralph: Parsing scene geometry. The final step of this process is decomposing polygons into a set of convex polygons and converting them to triangles.
To start the building process we need num of elements in the scene. For AC <=22 it was ok, because
ModelerAPI::Model::GetElementCount()
was returning relevant number => 1 column = 1 element.
In AC 23 however, we can rely on this num no longer.
My first approach was to select which enum values are relevant but it was the wrong way. Then my next idea was to obtain num of
GetMeshBodyCount
() or
GetTessellatedBodyCount
(). But it was also wrong because for example,
ColumnElement
was returning it has a Body, but the body had no polys.
My recent working solution is to get to go one step deeper meaning I'm looking if mesh body has polygons
MeshBody::GetPolygonCount()
-> if yes -> it's ok to build...