.. role:: clio-inherited
   :class: clio-flag clio-flag-inherited


############################
PartTexturedIndexedTriangles
############################

.. js:class:: cee.mrk.PartTexturedIndexedTriangles

   Defines textured indexed triangles that can be shown in a :js:class:`MarkupModel <cee.mrk.MarkupModel>`\ .
   
   Use :js:meth:`MarkupModel.addTexturedIndexedTrianglesPart <cee.mrk.MarkupModel.addTexturedIndexedTrianglesPart>` to create a new instance of this class.
   
   
   Index
   =====
   
   .. rubric:: Accessors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~cee.mrk.PartTexturedIndexedTriangles.customData`
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~cee.mrk.PartTexturedIndexedTriangles.rayIntersect`
   * :js:meth:`~cee.mrk.PartTexturedIndexedTriangles.setMeshData`
   * :js:meth:`~cee.mrk.PartTexturedIndexedTriangles.setTexture`
   
   



.. rst-class:: kind-group kind-accessors

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


.. js:method:: cee.mrk.PartTexturedIndexedTriangles.customData

      .. rst-class:: clio-flags
      
         :clio-inherited:`inherited`
      
      .. rst-class:: sig-pretty-signature
      
         | *get* customData(): *any*
      
      Custom data for the part. This field is not used by EnvisionWeb.
      
      **Returns**\ : *any*
      
      .. rst-class:: sig-pretty-signature
      
         | *set* customData(**data**\ : *any*\ ): *void*
      
      **Parameters**
      
      
         **data**\ : *any*
      
      
      **Returns**\ : *void*
      



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

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


.. js:method:: cee.mrk.PartTexturedIndexedTriangles.rayIntersect

      .. rst-class:: sig-pretty-signature
      
         | rayIntersect(**ray**\ : :js:class:`Ray <cee.Ray>`\ , **hitItem**\ : :js:class:`PartHitItem <cee.mrk.PartHitItem>`\ ): *boolean*
      
      Picking
      
      **Parameters**
      
      
         **ray**\ : :js:class:`Ray <cee.Ray>`
      
         **hitItem**\ : :js:class:`PartHitItem <cee.mrk.PartHitItem>`
      
      
      **Returns**\ : *boolean*
      



.. js:method:: cee.mrk.PartTexturedIndexedTriangles.setMeshData

      .. rst-class:: sig-pretty-signature
      
         | setMeshData(**vertices**\ : *ArrayLike*\ , **textureCoords**\ : *ArrayLike*\ , **indices**\ : *ArrayLike*\ ): *void*
      
      Sets the triangles in the part using the given vertices and indices. See :js:class:`geo.MeshIndexedTriangles <cee.geo.MeshIndexedTriangles>` for an explanation of these arrays. The textureCoords array should contain per vertex 2d texture coordinates (s,t) for each vertex in vertices.
      
      **Parameters**
      
      
         **vertices**\ : *ArrayLike*
      
         **textureCoords**\ : *ArrayLike*
      
         **indices**\ : *ArrayLike*
      
      
      **Returns**\ : *void*
      



.. js:method:: cee.mrk.PartTexturedIndexedTriangles.setTexture

      .. rst-class:: sig-pretty-signature
      
         | setTexture(**texture**\ : :js:class:`Texture <cee.Texture>`\ ): *void*
      
      Sets the :js:class:`Texture <cee.Texture>` of the part.
      
      **Parameters**
      
      
         **texture**\ : :js:class:`Texture <cee.Texture>`
      
      
      **Returns**\ : *void*
      




