.. role:: ts-api-decorator

#################
MeshDataInterface
#################

.. js:module:: Sc
   :noindex:

.. container:: ts-api-section

   .. js:class:: MeshDataInterface



.. container:: api-index-section

   .. rubric:: Methods

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

   * :js:meth:`~Sc.MeshDataInterface.create`
   * :js:meth:`~Sc.MeshDataInterface.destroy`
   * :js:meth:`~Sc.MeshDataInterface.getData`
   * :js:meth:`~Sc.MeshDataInterface.lineElementSegments`
   * :js:meth:`~Sc.MeshDataInterface.linesToIncidentFaces`
   * :js:meth:`~Sc.MeshDataInterface.replace`





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

Methods
=======

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

create
------

.. js:method:: MeshDataInterface.create( meshDataBuilder)

   :param meshDataBuilder: None
   :type meshDataBuilder: MeshDataBuilder


   :rtype: Promise <MeshId>

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

destroy
-------

.. js:method:: MeshDataInterface.destroy( ids)

   :param ids: None
   :type ids: MeshIds


   :rtype: Promise <void>

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

getData
-------

.. js:method:: MeshDataInterface.getData( id)

   :param id: None
   :type id: MeshId


   :rtype: Promise <MeshDataCopy>

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

lineElementSegments
-------------------

.. js:method:: MeshDataInterface.lineElementSegments( meshId, lineElementIndex)

   :param meshId: None
   :type meshId: MeshId
   :param lineElementIndex: None
   :type lineElementIndex: number


   :rtype: Promise <Vector3s>

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

linesToIncidentFaces
--------------------

.. js:method:: MeshDataInterface.linesToIncidentFaces( lineElementIndices, meshId)

   :param lineElementIndices: None
   :type lineElementIndices: [number]
   :param meshId: None
   :type meshId: MeshId


   :rtype: Promise <[number]>

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

replace
-------

.. js:method:: MeshDataInterface.replace( id, meshDataBuilder)

   :param id: None
   :type id: MeshId
   :param meshDataBuilder: None
   :type meshDataBuilder: MeshDataBuilder


   :rtype: Promise <void>

