Measuring Entities in Geometry
Use the function mphmeasure to measure the geometry entities in the model.
Enter the command:
measure = mphmeasure(model, <geomtag>, entity, …)
to get the measurement of the entity type entity in the geometry <geomtag>. entity can be one of 'point', 'edge', 'boundary', or 'domain'.
The output measure return the value of a coordinates, a length, an area or volume, respectively. For point entities, if you select two or more points, the output correspond to the midpoint coordinates.
To specify the entity selection to measure enter:
measure = mphmeasure(model, <geomtag>, entity, 'selection', sel, …)
where sel is an integer array that contains the selection number of the entities to measure.
When you select several entities you can get another measurement value with the command:
[msr1, msr2]= mphmeasure(model, <geomtag>, entity, …)
where msr2 corresponds to a surface area when the entities are volumes and a distance when the input entities are two points.