.. role:: ts-api-decorator

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

.. js:module:: cee.mrk
   :noindex:

.. container:: ts-api-section

   .. js:class:: PartTexturedIndexedTriangles

      Defines textured indexed triangles that can be shown in a ``MarkupModel``.

      Use ``MarkupModel.addTexturedIndexedTrianglesPart`` to create a new instance of this class.



.. container:: api-index-section

   .. rubric:: Accessors

   .. rst-class:: api-index-list-item api-kind-accessor api-parent-kind-class

   * :js:attr:`~cee.mrk.PartTexturedIndexedTriangles.customData`



.. container:: api-index-section

   .. rubric:: Methods

   .. rst-class:: api-index-list-item api-kind-method api-parent-kind-class

   * :js:meth:`~cee.mrk.PartTexturedIndexedTriangles.rayIntersect`
   * :js:meth:`~cee.mrk.PartTexturedIndexedTriangles.setMeshData`
   * :js:meth:`~cee.mrk.PartTexturedIndexedTriangles.setTexture`





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

Accessors
=========

.. container:: ts-api-section

   .. js:function:: PartTexturedIndexedTriangles.customData()



      Custom data for the part. This field is not used by EnvisionWeb.


      :rtype: any

   .. js:function:: PartTexturedIndexedTriangles.customData( data)

      :param data: None
      :type data: any


      :rtype: void



Methods
=======

.. rst-class:: ts-api-section

rayIntersect
------------

.. js:method:: PartTexturedIndexedTriangles.rayIntersect( ray, hitItem)

   :param ray: None
   :type ray: Ray
   :param hitItem: None
   :type hitItem: PartHitItem


   Picking


   :rtype: boolean

.. rst-class:: ts-api-section

setMeshData
-----------

.. js:method:: PartTexturedIndexedTriangles.setMeshData( vertices, textureCoords, indices)

   :param vertices: None
   :type vertices: ArrayLike <number>
   :param textureCoords: None
   :type textureCoords: ArrayLike <number>
   :param indices: None
   :type indices: ArrayLike <number>


   Sets the triangles in the part using the given vertices and indices. See ``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.


   :rtype: void

.. rst-class:: ts-api-section

setTexture
----------

.. js:method:: PartTexturedIndexedTriangles.setTexture( texture)

   :param texture: None
   :type texture: Texture


   Sets the ``Texture`` of the part.


   :rtype: void

