CentroidMeasurement
Create parameters for the average position of a selection of vertices.
Syntax
model.component(<ctag>).geom(<tag>).create(<ftag>,"CentroidMeasurement");
model.component(<ctag>).geom(<tag>).feature(<ftag>).selection(property);
model.component(<ctag>).geom(<tag>).feature(<ftag>).set(property,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).getType(property);
model.component(<ctag>).geom(<tag>).feature(<ftag>).setAttribute(attribute,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).getAttribute(attribute);
Description
Use model.component(<ctag>).geom(<tag>).create(<ftag>,"CentroidMeasurement") to create parameters for the average position of vertices.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).selection("ent").set() to select the vertices to measure. The default selection is empty.
Use double[] parvalues = model.component(<ctag>).geom(<tag>).feature(<ftag>).getDoubleArray("parval"); to access the parameter values.
See Also
DistanceMeasurement, Measurement Methods