
####
Part
####

.. js:class:: cee.usg.Part

   A part describes the elements and nodes in one part of the :js:class:`Geometry <cee.usg.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.
   
   
   Index
   =====
   
   .. rubric:: Accessors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~cee.usg.Part.customData`
   * :js:func:`~cee.usg.Part.mesh`
   * :js:func:`~cee.usg.Part.name`
   * :js:func:`~cee.usg.Part.settings`
   
   



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

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


.. js:method:: cee.usg.Part.customData

      .. 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*
      



.. js:method:: cee.usg.Part.mesh

      .. rst-class:: sig-pretty-signature
      
         | *get* mesh(): :js:class:`Mesh <cee.usg.Mesh>`
      
      The mesh defining the elements and nodes of the part.
      
      **Returns**\ : :js:class:`Mesh <cee.usg.Mesh>`
      
      .. rst-class:: sig-pretty-signature
      
         | *set* mesh(**mesh**\ : :js:class:`Mesh <cee.usg.Mesh>`\ ): *void*
      
      **Parameters**
      
      
         **mesh**\ : :js:class:`Mesh <cee.usg.Mesh>`
      
      
      **Returns**\ : *void*
      



.. js:method:: cee.usg.Part.name

      .. rst-class:: sig-pretty-signature
      
         | *get* name(): *string*
      
      The name of the part
      
      **Returns**\ : *string*
      
      .. rst-class:: sig-pretty-signature
      
         | *set* name(**name**\ : *string*\ ): *void*
      
      **Parameters**
      
      
         **name**\ : *string*
      
      
      **Returns**\ : *void*
      



.. js:method:: cee.usg.Part.settings

      .. rst-class:: sig-pretty-signature
      
         | *get* settings(): :js:class:`PartSettings <cee.usg.PartSettings>`
      
      Returns an active reference to the settings for this part.
      
      **Returns**\ : :js:class:`PartSettings <cee.usg.PartSettings>`
      




