Hierarchy

  • MarchingCubes

Constructors

Accessors

Methods

Constructors

Accessors

  • get valid(): boolean
  • Returns boolean

  • get xyzOrder(): boolean
  • Returns boolean

  • set xyzOrder(isXYZ: boolean): void
  • Set the order of the cube axis to be in XYZ or not (by default XYZ is choosen) The XYZ order means that x is traversed first, then y, then z. Recall that XYZ order means x variation first. The loop is therefore for(z) { for(y) { for(x) {} } } leading to coordinates: 0 0 0 1 0 0 2 0 0 0 1 0 1 1 0 2 1 0 ...

    When the order is not XYZ, thz z axis is traversed first, then y, then x. The loop is therefore for(x) { for(y) { for(z) {} } } leading to coordinates: 0 0 0 0 0 1 0 0 2 0 1 0 0 1 1 0 1 2 ...

    By default the order is XYZ.

    Parameters

    • isXYZ: boolean

      if the cube is defined in the XYZ order

    Returns void

Methods

  • Returns

    the object {positions: number[], indices: number[]}

    Parameters

    • isoValue: number

      The iso value

    • Optional bounds: number[]

      Bounds of the attribute if necessary

    Returns {
        indices: any[];
        positions: any[];
    }

    • indices: any[]
    • positions: any[]