 |
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: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
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