Creates a new XMaterialMesh mesh from OBJ file.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
public static XMaterialMesh CreateMeshFromObj( Stream stream, string sourceDirectory ) |
Parameters
- stream
- Type: System.IO..::.Stream
The data source.
- sourceDirectory
- Type: System..::.String
The initial texture directory.
Return Value
Returns the created XMaterialMesh mesh.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | stream is nullNothingnullptra null reference (Nothing in Visual Basic). |