![]() | |
Obj |
public class ObjExporter
The ObjExporter type exposes the following members.
Name | Description | |
---|---|---|
![]() | ObjExporter | Initializes a new instance of the ObjExporter class |
Name | Description | |
---|---|---|
![]() | ExportMaterials | When true (by default) than materials are exported into .mtl file with the same name as the .obj file. |
Name | Description | |
---|---|---|
![]() | AddScene | Add scene and its contents to list of items to export. Multiple scenes can be added to exporter, but the first one (with index 0) is always marked as active in the model file. |
![]() | AddSceneNode | Add scene node to list of items to export. The node is added to the last scene currently defined in the exporter. If no scenes have been defined yet, a new scene is defined and the node is added to it. |
![]() | ClearAddedSceneNodes | ClearAddedSceneNodes can be called to clear the SceneNodes that were added by calling AddScene(Scene) and AddSceneNode(SceneNode). |
![]() | Export(String, ObjExporterExportResourceFunction) | 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. |
![]() | Export(Stream, String, ObjExporterExportResourceFunction) | 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. |
[Missing <remarks> documentation for "T:Ab4d.SharpEngine.Utilities.ObjExporter"]