.. role:: ts-api-decorator

####
Part
####

.. js:module:: cee.usg
   :noindex:

.. container:: ts-api-section

   .. js:class:: Part

      A part describes the elements and nodes in one part of the ``Geometry``.

      A part links a mesh defining the part geometry (mesh) with the settings for the part. Parts can
      share a mesh, and then e.g. use a transformation result to offset the parts.

      The part settings allows you to control the color, draw style, visibility and result settings
      for the part.

      A part can have a user defined name and a customData property is provided to store any
      application specific data for each part.



.. container:: api-index-section

   .. rubric:: Accessors

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

   * :js:attr:`~cee.usg.Part.customData`
   * :js:attr:`~cee.usg.Part.mesh`
   * :js:attr:`~cee.usg.Part.name`
   * :js:attr:`~cee.usg.Part.settings`





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

Accessors
=========

.. container:: ts-api-section

   .. js:function:: Part.customData()



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


      :rtype: any

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

      :param data: None
      :type data: any


      :rtype: void



.. container:: ts-api-section

   .. js:function:: Part.mesh()



      The mesh defining the elements and nodes of the part.


      :rtype: Mesh

   .. js:function:: Part.mesh( mesh)

      :param mesh: None
      :type mesh: Mesh


      :rtype: void



.. container:: ts-api-section

   .. js:function:: Part.name()



      The name of the part


      :rtype: string

   .. js:function:: Part.name( name)

      :param name: None
      :type name: string


      :rtype: void



.. container:: ts-api-section

   .. js:function:: Part.settings()



      Returns an active reference to the settings for this part.


      :rtype: PartSettings



