World

World

Class World defines the coordinate system for the model. It has transforms for multiple coordinate systems.

The world is defined by an object with 6 properties:


Constructor

# new World()

Source:
Example
WorldOptions = {
  minX: integer,
  maxX: integer,
  minY: integer,
  maxY: integer,
  minZ: integer,
  maxZ: integer,
}

Methods

# (static) defaultOptions(maxXopt, maxYopt, maxZopt) → {Object}

Return a default options object, origin at center.

Parameters
Name Type Attributes Default Description
maxX number <optional>
16

Integer max X value

maxY number <optional>

Integer max Y value

maxZ number <optional>

Integer max Z value

Source:
Returns

WorldOptions

Type
  • Object