Click or drag to resize
Ab4d.SharpEngine logo

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.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public 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