# MeshDataInterface

class Sc.MeshDataInterface()

Methods

- `create()`

- `destroy()`

- `getData()`

- `lineElementSegments()`

- `linesToIncidentFaces()`

- `replace()`

## Methods

### create

MeshDataInterface.create(meshDataBuilder)
  Arguments

    - meshDataBuilder (`MeshDataBuilder()`) – None

  Return type

    Promise <MeshId>

### destroy

MeshDataInterface.destroy(ids)
  Arguments

    - ids (`MeshIds()`) – None

  Return type

    Promise <void>

### getData

MeshDataInterface.getData(id)
  Arguments

    - id (`MeshId()`) – None

  Return type

    Promise <MeshDataCopy>

### lineElementSegments

MeshDataInterface.lineElementSegments(meshId, lineElementIndex)
  Arguments

    - meshId (`MeshId()`) – None

    - lineElementIndex (`number()`) – None

  Return type

    Promise <Vector3s>

### linesToIncidentFaces

MeshDataInterface.linesToIncidentFaces(lineElementIndices, meshId)
  Arguments

    - lineElementIndices (`[number]()`) – None

    - meshId (`MeshId()`) – None

  Return type

    Promise <[number]>

### replace

MeshDataInterface.replace(id, meshDataBuilder)
  Arguments

    - id (`MeshId()`) – None

    - meshDataBuilder (`MeshDataBuilder()`) – None

  Return type

    Promise <void>