voronoid WASM API
    Preparing search index...

    Class Cell3D

    Index

    Properties

    face_counts: Uint32Array

    The number of vertices for each face.

    face_indices: Uint32Array

    The indices of vertices forming the faces.

    face_neighbors: Int32Array

    The neighbor IDs for each face.

    id: number

    The index of the generator corresponding to this cell.

    vertices: Float64Array

    The vertices of the cell as a flat array [x0, y0, z0, x1, y1, z1, ...].

    Methods

    • Returns void

    • Calculates the centroid of the cell.

      Returns Float64Array

    • Calculates the area of a specific face.

      Parameters

      • face_index: number

      Returns number

    • Returns any[]

    • Returns void

    • Calculates the volume of the cell.

      Returns number