Number and Types of Elements
To determine the number of elements of a certain type, use
int model.component(
<ctag>
).mesh(
<tag>
).stat().getNumElem(
type
);
To get the number of elements of all types, use
int model.component(
<ctag>
).mesh(
<tag>
).stat().getNumElem();
To determine the element types, use
String[] model.component(
<ctag>
).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.component(
<ctag>
).mesh(
<tag>
).getNumElem(String
type
);
int model.component(
<ctag>
).mesh(
<tag>
).getNumElem();
int[] model.component(
<ctag>
).mesh(
<tag>
).getGeomEntities(String
type
);
String[] model.component(
<ctag>
).mesh(
<tag>
).getTypes();
to obtain information about the entire mesh.
To check whether the mesh contains any second-order element, use
boolean model.component(
<ctag>
).mesh(
<tag>
).hasSecondOrderElements();