Click or drag to resize
Ab4d.SharpEngine logo

ObjExporterExport(Stream, String, ObjExporterExportResourceFunction) Method

Export the Scene and SceneNodes that ware added by AddScene(Scene) and AddSceneNode(SceneNode) into the specified stream. 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. argument.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public void Export(
	Stream stream,
	string? fileName,
	ObjExporterExportResourceFunction exportResourceFunc
)

Parameters

stream  Stream
stream into which main model is to be written
fileName  String
optional file name that is used as default file name for .obj and .mtl files that are sent to exportResourceFunc
exportResourceFunc  ObjExporterExportResourceFunction
optional implementation of export function for saving texture images
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.ObjExporter.Export(System.IO.Stream,System.String,Ab4d.SharpEngine.Utilities.ObjExporter.ExportResourceFunction)"]

See Also