Measurement Methods
To get the volume/area/length of the selected entities, enter
double vol = model.component(
<ctag>
).geom(
<tag>
).measure().getVolume();
To get the area/length of the boundary of the selected entities, enter
double bndVol = model.component(
<ctag>
).geom(
<tag>
).measure().getBoundaryVolume();
If you have selected two vertices, you can get their distance by entering
double[] d = model.component(
<ctag>
).geom(
<tag>
).measure().getVtxDistance();
d[0]
is the distance, and
d[i]
is the distance in the
i
th coordinate (
i
=
1
,
2
,
3
).
If you have selected one vertex, you can get its coordinates by entering
double[] coord = model.component(
<ctag>
).geom(
<tag>
).measure().getVtxCoord();
To get the total number of entities in the selected objects, enter
int[] entitiesPerDimension = model.component(
<ctag>
).geom(
<tag>
).measure().getNEntities();
To get the total number of finite voids in the selected objects or finalized geometry, enter
int finiteVoids = model.component(
<ctag>
).geom(
<tag>
).measure().getNFiniteVoids();