Click or drag to resize

AssimpLibraryExportScene(IntPtr, String, String, PostProcessSteps) Method

Exports the given scene to a chosen file format and writes the result file(s) to disk.

Namespace: Internal.Assimp.Unmanaged
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public ReturnCode ExportScene(
	IntPtr scene,
	string formatId,
	string fileName,
	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
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

ReturnCode
Return code specifying if the operation was a success.
See Also