AssimpContextImportFileFromStream(Stream, PostProcessSteps, String) Method |
Imports a model from the stream. The importer sets configurations and loads the model into managed memory, releasing the unmanaged memory
used by Assimp. It is up to the caller to dispose of the stream. If the format is distributed across multiple files/streams, set a custom
IOSystem
and use the "ImportFile" family of functions.
Namespace: Internal.AssimpAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic Scene ImportFileFromStream(
Stream stream,
PostProcessSteps postProcessFlags,
string formatHint = null
)
Parameters
- stream Stream
- Stream to read from
- postProcessFlags PostProcessSteps
- Post processing flags, if any
- formatHint String (Optional)
- Optional format extension to serve as a hint to Assimp to choose which importer to use. If null or empty, the system will
try to detect what importer to use from the data which may or may not be successful.
Return Value
SceneThe imported scene
Exceptions
See Also