Class: PrepData

PrepData


new PrepData()

Configuration instructions to be used by run method.

Methods


<static> PrepData#addResource(resource)

Add a resource description.

Parameters:
Name Type Description
resource THREE.LoaderSupport.ResourceDescriptor

<static> PrepData#clone()

Clones this object and returns it afterwards.

Returns:

<static> PrepData#getCallbacks()

Returns all callbacks as THREE.LoaderSupport.Callbacks

Returns:
Type
THREE.LoaderSupport.Callbacks

<static> PrepData#setCrossOrigin(crossOrigin)

Sets the CORS string to be used.

Parameters:
Name Type Description
crossOrigin string

CORS value


<static> PrepData#setDisregardNormals(disregardNormals)

Tells whether normals should be completely disregarded and regenerated.

Parameters:
Name Type Default Description
disregardNormals boolean false

<static> PrepData#setMaterialPerSmoothingGroup(materialPerSmoothingGroup)

Tells whether a material shall be created per smoothing group.

Parameters:
Name Type Default Description
materialPerSmoothingGroup boolean false

<static> PrepData#setStreamMeshesTo(streamMeshesTo)

Set the node where the loaded objects will be attached directly.

Parameters:
Name Type Description
streamMeshesTo THREE.Object3D

Object already attached to scenegraph where new meshes will be attached to


<static> PrepData#setUseAsync(useAsync)

If true uses async loading with worker, if false loads data synchronously.

Parameters:
Name Type Description
useAsync boolean

<static> PrepData#setUseIndices(useIndices)

Tells whether indices should be used

Parameters:
Name Type Default Description
useIndices boolean false