.. role:: ts-api-decorator

####################
PartIndexedTriangles
####################

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

.. container:: ts-api-section

   .. js:class:: PartIndexedTriangles

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

      Use ``MarkupModel.addIndexedTrianglesPart`` 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.PartIndexedTriangles.color`
   * :js:attr:`~cee.mrk.PartIndexedTriangles.customData`
   * :js:attr:`~cee.mrk.PartIndexedTriangles.eyeLift`



.. container:: api-index-section

   .. rubric:: Methods

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

   * :js:meth:`~cee.mrk.PartIndexedTriangles.rayIntersect`
   * :js:meth:`~cee.mrk.PartIndexedTriangles.setMeshData`





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

Accessors
=========

.. container:: ts-api-section

   .. js:function:: PartIndexedTriangles.color()



      The color of the part.


      :rtype: Color3Like

   .. js:function:: PartIndexedTriangles.color( color)

      :param color: None
      :type color: Color3Like


      :rtype: void



.. container:: ts-api-section

   .. js:function:: PartIndexedTriangles.customData()



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


      :rtype: any

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

      :param data: None
      :type data: any


      :rtype: void



.. container:: ts-api-section

   .. js:function:: PartIndexedTriangles.eyeLift()



      The eye lift mode to use for this part


      :rtype: EyeLift

   .. js:function:: PartIndexedTriangles.eyeLift( mode)

      :param mode: None
      :type mode: EyeLift


      :rtype: void



Methods
=======

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

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

.. js:method:: PartIndexedTriangles.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:: PartIndexedTriangles.setMeshData( vertices, indices)

   :param vertices: None
   :type vertices: 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.


   :rtype: void

