 |
ObjExporterExport(String, ObjExporterExportResourceFunction) Method |
Export the Scene and SceneNodes that ware added by
AddScene(Scene) and
AddSceneNode(SceneNode) into the specified obj file.
Optional exportResourceFunc can be provided to override the default function for exporting .mtl file (material file) and texture images.
The default implementation writes the .mtl file and texture images into the same directory as the model file.
If the file already exists, then it is deleted before creating a new one.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic void Export(
string fileName,
ObjExporterExportResourceFunction? exportResourceFunc = null
)
Parameters
- fileName String
- model filename
- exportResourceFunc ObjExporterExportResourceFunction (Optional)
- optional implementation of export function for saving texture images
See Also