Class ObjFileReaderSettings
Settings to control the behaviour of the JeremyAnsel.Media.WavefrontObj.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 SourceHandleEachGroupOccurrenceAsNewGroup
Normally groups are reused when the group name is used multiple times. If this flag is set to true, all group occurrences are handled as a different and new group
Declaration
public bool HandleEachGroupOccurrenceAsNewGroup { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
This flag should be set to true, when groups should be interpreted like other libraries like three.js or tinyobjloader The following example shows the difference between the default behavior and the behavior with this flag set to true: g cube f 1 2 3 g other f 4 5 6 g cube f 7 8 9 When set to true: 3 groups are created (cube, other, cube) When set to false: 2 groups are created (cube, other). All faces of the second cube group are part of the first cube group.
HandleObjectNamesAsGroup
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