mphgeominfo
Get geometry information.
Syntax
info = mphgeominfo(model, geomtag)
info = mphgeominfo(model)
[info,data] = mphgeominfo(model,geomtag,…)
 
Description
info = mphgeominfo(model,geomtag) returns the information of the geometry defined with the tag geomtag. The tag geomtag can also be the tag of a geometry part. If only a unique geometry node is defined in the model, the tag geomtag is optional.
[info,data] = mphgeominfo(model,geomtag,…) returns the information and geometry data of a specific entity.
The function mphgeominfo accepts the following property/value pairs to return geometry data:
on | off | string
face | edge | vertex
The output structure info contains the following fields:
For a face evaluation, the output structure data contains the following fields:
For an edge evaluation, the output structure data contains the following fields:
* edgenormal is only returned for 2D space dimension.
** edgetorsion is only returned for 3D space dimension.
For a vertex evaluation, the output structure data contains the following fields:
Example
Get model geometry information:
model = mphopen('model_tutorial_llmatlab.mph');
info = mphgeominfo(model)
Get geometry data for face number 4:
[info, data] = mphgeominfo(model,'geom1','entity','face',…
'selection',4);
Get geometry data for face number 4 using a 5-by-10 grid:
[info, data] = mphgeominfo(model,'geom1','entity','face',…
'selection',4,'steps',[5 10]);
See also
mphcomponentinfo, mphmeshstats