ColladaLoader

class ColladaLoader(val position: Position, val dirPath: String)

Constructors

Link copied to clipboard
constructor(position: Position, dirPath: String)
constructor(position: Position, asset: AssetResource)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun parse(assets: ResourceContainer<AssetResource>, rrc: RenderResourceCache): ColladaScene
Link copied to clipboard
fun ColladaLoader.parseStream(file: File): ColladaScene

Low-memory streaming load of a .dae from a file or stream (JVM/Android). Unlike ColladaLoader.parse (String), this never allocates the whole document as a String: ColladaStreamParser reads from the Reader (which is xmlutil's multiplatform Reader on these targets) so a multi-hundred-MB photogrammetry .dae stays within a mobile heap. Caller sets ColladaScene.imageSourceFactory for textures.

fun ColladaLoader.parseStream(input: InputStream): ColladaScene

Streams from an already-open input; the caller owns its lifecycle.