Selva Compute API Reference - v2.1.0
    Preparing search index...
    Index

    Constructors

    Properties

    count: number

    Gets or sets the number of mesh vertices.

    useDoublePrecisionVertices: boolean

    Set to true if the vertices should be stored in double precision

    Methods

    • Parameters

      • x: number

        X component of new vertex coordinate.

      • y: number

        Y component of new vertex coordinate.

      • z: number

        Z component of new vertex coordinate.

      Returns number

      The index of the newly added vertex.

      Adds a new vertex to the end of the Vertex list.

    • Returns void

      Clears the Vertex list on the mesh.

    • Parameters

      • ignoreNormals: boolean

        If true, vertex normals will not be taken into consideration when comparing vertices.

      • ignoreAdditional: boolean

        If true, texture coordinates, colors, and principal curvatures will not be taken into consideration when comparing vertices.

      Returns boolean

      true if the mesh is changed, in which case the mesh will have fewer vertices than before.

      Merges identical vertices.

    • Returns number

      The number of unused vertices that were removed.

      Removes all vertices that are currently not used by the Face list.

    • Returns void

      Releases all memory allocated to store faces. The list capacity will be 0 after this call. Subsequent calls can add new items.

    • ...

      Parameters

      • index: number

      Returns number[]

    • Parameters

      • vertexIndex: number

        Index of vertex to hide.

      Returns void

      Hides the vertex at the given index.

    • Returns void

      Hides all vertices in the mesh.

    • Parameters

      • vertexIndex: number

        Index of vertex to query.

      Returns boolean

      true if the vertex is hidden, false if it is not.

      Gets a value indicating whether or not a vertex is hidden.

    • ...

      Parameters

      • index: number
      • vertex: number[]

      Returns void

    • ...

      Parameters

      • capacity: number

      Returns void

    • Parameters

      • vertexIndex: number

        Index of vertex to show.

      Returns void

      Shows the vertex at the given index.

    • Returns void

      Shows all vertices in the mesh.