GeometryLoader Class

Module: Loaders

Geometry loader can be used to load geometry files.

Item Index

Methods

load

(
  • url
  • onLoad
  • onProgress
  • onError
)

Load geometry json file from URL.

Parameters:

  • url String
  • onLoad Function
  • onProgress Function
  • onError Function

parse

(
  • json
)
Geometry

Parse geometry json.

Parameters:

  • json Object

Returns:

Geometry:

Geometry loaded from json.

setImages

(
  • images
)

Set list of images to be used by the loader.

Parameters:

  • images Array

setShapes

(
  • shapes
)

Set list of shapes to be used by this loader.

Parameters:

  • shapes Array