Class ObjFileReaderSettings
Settings to control the behaviour of the ObjFileReader
Inherited Members
Namespace: JeremyAnsel.Media.WavefrontObj
Assembly: JeremyAnsel.Media.WavefrontObj.dll
Syntax
public class ObjFileReaderSettings
Fields
| Edit this page View SourceDefault
Default settings
Declaration
public static readonly ObjFileReaderSettings Default
Field Value
| Type | Description |
|---|---|
| ObjFileReaderSettings |
Properties
| Edit this page View SourceHandleObjectNamesAsGroup
Object names normally not interpreted as a ObjGroup If this flag is set to true, object names are handled as a group.
Declaration
public bool HandleObjectNamesAsGroup { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
This flag should be set to true, when object files should be interpreted like other libraries like three.js or tinyobjloader
KeepWhitespacesOfMtlLibReferences
Normally whitespaces removed during import e.g. "mtllib wl file 5.mtl" changed to "mtllib wl file 5.mtl" If this flag is set to true, all after the mtllib will be interpreted as a single mtllib reference
Declaration
public bool KeepWhitespacesOfMtlLibReferences { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
This flag should be set to true, when object files should be interpreted like other libraries like three.js or tinyobjloader
OnlyOneGroupNamePerLine
Normally multiple group names are valid per line e.g. "g group_name1 group_name1" If this flag is set to true, all after the g will be interpreted as a single group name
Declaration
public bool OnlyOneGroupNamePerLine { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
This flag should be set to true, when object files should be interpreted like other libraries like three.js or tinyobjloader