Class JSC3D.StlLoader
StlLoader
This class implements a scene loader from an STL file. Both binary and ASCII STL files are supported.
Defined in: jsc3d.js.
Constructor Attributes | Constructor Name and Description |
---|---|
JSC3D.StlLoader(onload, onerror, onprogress, onresource)
|
Method Attributes | Method Name and Description |
---|---|
abort()
Abort current loading if it is not finished yet.
|
|
loadFromUrl(urlName)
Load scene from a given STL file.
|
|
setDecimalPrecision(precision)
Set decimal precision that defines the threshold to detect and weld vertices that coincide.
|
Class Detail
JSC3D.StlLoader(onload, onerror, onprogress, onresource)
- Parameters:
- onload
- onerror
- onprogress
- onresource
Method Detail
abort()
Abort current loading if it is not finished yet.
loadFromUrl(urlName)
Load scene from a given STL file.
- Parameters:
- {String} urlName
- a string that specifies where to fetch the STL file.
setDecimalPrecision(precision)
Set decimal precision that defines the threshold to detect and weld vertices that coincide.
- Parameters:
- {Number} precision
- the decimal preciison.