.. role:: ts-api-decorator

####################
QueryElementInfoData
####################

.. js:module:: cee.ug
   :noindex:

.. container:: ts-api-section

   .. js:class:: QueryElementInfoData

      Info about an element in a given frame



.. container:: api-index-section

   .. rubric:: Properties

   .. rst-class:: api-index-list-item api-kind-property api-parent-kind-interface

   * :js:attr:`~cee.ug.QueryElementInfoData.elementArea`
   * :js:attr:`~cee.ug.QueryElementInfoData.elementCentroid`
   * :js:attr:`~cee.ug.QueryElementInfoData.elementId`
   * :js:attr:`~cee.ug.QueryElementInfoData.elementIndex`
   * :js:attr:`~cee.ug.QueryElementInfoData.elementNodes`
   * :js:attr:`~cee.ug.QueryElementInfoData.elementTriangleVertices`
   * :js:attr:`~cee.ug.QueryElementInfoData.elementType`
   * :js:attr:`~cee.ug.QueryElementInfoData.elementVolume`
   * :js:attr:`~cee.ug.QueryElementInfoData.frameIndex`
   * :js:attr:`~cee.ug.QueryElementInfoData.geometryIndex`
   * :js:attr:`~cee.ug.QueryElementInfoData.partId`
   * :js:attr:`~cee.ug.QueryElementInfoData.scalarResult`
   * :js:attr:`~cee.ug.QueryElementInfoData.stateId`
   * :js:attr:`~cee.ug.QueryElementInfoData.vectorResultArr`





------------

Properties
==========

.. container:: ts-api-section

   .. js:attribute:: QueryElementInfoData.elementArea

      :type: number

      The area of the element (if applicable)



.. container:: ts-api-section

   .. js:attribute:: QueryElementInfoData.elementCentroid

      :type: [number]

      The centroid of the element.



.. container:: ts-api-section

   .. js:attribute:: QueryElementInfoData.elementId

      :type: number

      The id of the element



.. container:: ts-api-section

   .. js:attribute:: QueryElementInfoData.elementIndex

      :type: number

      The index of the element



.. container:: ts-api-section

   .. js:attribute:: QueryElementInfoData.elementNodes

      :type: [function]

      Data for all element nodes



.. container:: ts-api-section

   .. js:attribute:: QueryElementInfoData.elementTriangleVertices

      :type: [number]

      A tessellation of triangles of the element. 

      This array contains x,y,z values for each triangle vertex. So there will be 9 values (3 vertices * (x,y,z)) per triangle.
      This can be used to highlight the element using the geometry or the markup model.



.. container:: ts-api-section

   .. js:attribute:: QueryElementInfoData.elementType

      :type: string

      The type of the element, for example 'Quad', 'Tetrahedron', 'Hexahedron'



.. container:: ts-api-section

   .. js:attribute:: QueryElementInfoData.elementVolume

      :type: number

      The volume of the element (if applicable)



.. container:: ts-api-section

   .. js:attribute:: QueryElementInfoData.frameIndex

      :type: number

      The index of the frame



.. container:: ts-api-section

   .. js:attribute:: QueryElementInfoData.geometryIndex

      :type: number

      The index of the CAE geometry. In almost all cases this will be 0



.. container:: ts-api-section

   .. js:attribute:: QueryElementInfoData.partId

      :type: number

      The id of the part containing the element



.. container:: ts-api-section

   .. js:attribute:: QueryElementInfoData.scalarResult

      :type: number

      The scalar value of the element.



.. container:: ts-api-section

   .. js:attribute:: QueryElementInfoData.stateId

      :type: number

      The state id of the frame



.. container:: ts-api-section

   .. js:attribute:: QueryElementInfoData.vectorResultArr

      :type: [number]

      The vector result(s) in the element. The array will contain 3 values (x,y,z) for each vector result.



