> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# mesh_query

#### Model.mesh\_query(name, position, selection='all', entity=None, entities=None, simulate=False, component=None)

Query arbitrary data from the mesh of the model.

* **Parameters:**
  * name: Data type to query:
    * labels, indices
    * etypes
    * coordinates
    * angles (needs component)
    * thickness (needs component)
    * normals
    * orientations, ref\_directions, fiber\_directions, transverse\_directions
    * draped\_fiber\_directions, draped\_transverse\_directions
    * ply\_offsets (offset vector)
    * area, volume, mass, price
    * cog (centre of gravity)
    * offset (offset in the thickness direction)
  * component: Defines the component. Needed for name=’angles’ or ‘thickness’.
    * angles: Valid options: design\_angle (default), shear, draped\_fiber\_angle, and draped\_transverse\_angle.
    * thickness: Valid options: thickness (default), and relative\_thickness\_correction.
  * position: Position where data is queried:
    * nodal
    * centroid
    * element\_nodal
  * selection: The selection set determines the selected nodes and elements.
    Can be given as string (‘sel0’-‘sel5’ or ‘all’)
    or ObjectSelection object such as
    * model.selection
    * scene.active\_set
  * entity: Specialized queries require the specification of an additional associated entity. For instance, an oriented element set is needed to compute orientations.
    Entity can be given as NamedGraphObjects or vertex descriptor.
  * entities: If a list of entities is given, then the query will also compute and return a list of results, with one array for each entity.
  * simulate: Whether the query is only simulated to test if it will return data.
    If this flag is set the mesh\_query(…) function will only return 0 or 1.
