GeometryLoader Class

Module: Loaders

Geometry loader can be used to load geometry files.

Item Index

Methods

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.

setShapes

(
  • shapes
)

Set list of shapes to be used by this loader.

Parameters:

  • shapes Array