AssimpLibraryExportScene(IntPtr, String, String, IntPtr, PostProcessSteps) Method |
Exports the given scene to a chosen file format and writes the result file(s) to disk.
Namespace: Internal.Assimp.UnmanagedAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic ReturnCode ExportScene(
IntPtr scene,
string formatId,
string fileName,
IntPtr fileIO,
PostProcessSteps preProcessing
)
Parameters
- scene IntPtr
- The scene to export, which needs to be freed by the caller. The scene is expected to conform to Assimp's Importer output format. In short,
this means the model data should use a right handed coordinate system, face winding should be counter clockwise, and the UV coordinate origin assumed to be upper left. If the input is different, specify the pre processing flags appropiately.
- formatId String
- Format id describing which format to export to.
- fileName String
- Output filename to write to
- fileIO IntPtr
- Pointer to an instance of AiFileIO, a custom file IO system used to open the model and
any associated file the loader needs to open, passing NULL uses the default implementation.
- preProcessing PostProcessSteps
- Pre processing flags - accepts any post processing step flag. In reality only a small subset are actually supported, e.g. to ensure the input
conforms to the standard Assimp output format. Some may be redundant, such as triangulation, which some exporters may have to enforce due to the export format.
Return Value
ReturnCodeReturn code specifying if the operation was a success.
See Also