.. role:: clio-readonly
   :class: clio-flag clio-flag-readonly


####
Mesh
####

.. js:class:: cee.geo.Mesh

   A Mesh defines the geometry (primitives) of a Part.
   
   Common interface for all Mesh classes.
   
   
   Index
   =====
   
   .. rubric:: Properties
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:data:`~cee.geo.Mesh.boundingBox`
   * :js:data:`~cee.geo.Mesh.primitiveCount`
   * :js:data:`~cee.geo.Mesh.primitiveType`
   * :js:data:`~cee.geo.Mesh.vertexCount`
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~cee.geo.Mesh.getPrimitiveVertices`
   * :js:meth:`~cee.geo.Mesh.rayIntersect`
   
   



.. rst-class:: kind-group kind-properties

.. rubric:: Properties
   :class: kind-group-title


.. js:data:: cee.geo.Mesh.boundingBox

      .. rst-class:: clio-flags
      
         :clio-readonly:`readonly`
      
      .. rst-class:: sig-pretty-signature
      
         | boundingBox: :js:class:`BoundingBox <cee.BoundingBox>`
      
      The :js:class:`BoundingBox <cee.BoundingBox>` of the mesh.
      



.. js:data:: cee.geo.Mesh.primitiveCount

      .. rst-class:: clio-flags
      
         :clio-readonly:`readonly`
      
      .. rst-class:: sig-pretty-signature
      
         | primitiveCount: *number*
      
      The number of primitives in the mesh.
      



.. js:data:: cee.geo.Mesh.primitiveType

      .. rst-class:: clio-flags
      
         :clio-readonly:`readonly`
      
      .. rst-class:: sig-pretty-signature
      
         | primitiveType: :js:data:`MeshPrimitiveType <cee.geo.MeshPrimitiveType>`
      
      The type of primitives that are used in the mesh.
      



.. js:data:: cee.geo.Mesh.vertexCount

      .. rst-class:: clio-flags
      
         :clio-readonly:`readonly`
      
      .. rst-class:: sig-pretty-signature
      
         | vertexCount: *number*
      
      The number of vertices in the mesh.
      



.. rst-class:: kind-group kind-methods

.. rubric:: Methods
   :class: kind-group-title


.. js:method:: cee.geo.Mesh.getPrimitiveVertices

      .. rst-class:: sig-pretty-signature
      
         | getPrimitiveVertices(**primitiveIndex**\ : *number*\ ): :js:class:`Vec3 <cee.Vec3>`\ []
      
      Returns the vertex indices of a given primitive.
      
      **Parameters**
      
      
         **primitiveIndex**\ : *number*
      
      
      **Returns**\ : :js:class:`Vec3 <cee.Vec3>`\ []
      



.. js:method:: cee.geo.Mesh.rayIntersect

      .. rst-class:: sig-pretty-signature
      
         | rayIntersect(**ray**\ : :js:class:`Ray <cee.Ray>`\ , **hitItem**\ : :js:class:`MeshHitItem <cee.geo.MeshHitItem>`\ ): *boolean*
      
      Performs picking on the mesh.
      
      **Parameters**
      
      
         **ray**\ : :js:class:`Ray <cee.Ray>`
      
         **hitItem**\ : :js:class:`MeshHitItem <cee.geo.MeshHitItem>`
      
      
      **Returns**\ : *boolean*
      




