| | | 1 | | namespace JeremyAnsel.Media.WavefrontObj; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Settings to control the behaviour of the <see cref="ObjFileReader" /> |
| | | 5 | | /// </summary> |
| | | 6 | | public class ObjFileReaderSettings |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Default settings |
| | | 10 | | /// </summary> |
| | 4 | 11 | | public static readonly ObjFileReaderSettings Default = new(); |
| | | 12 | | |
| | | 13 | | /// <summary> |
| | | 14 | | /// Object names normally not interpreted as a <see cref="ObjGroup" /> |
| | | 15 | | /// If this flag is set to true, object names are handled as a group. |
| | | 16 | | /// </summary> |
| | | 17 | | /// <remarks> |
| | | 18 | | /// This flag should be set to true, when object files should be interpreted like other libraries like three.js |
| | | 19 | | /// </remarks> |
| | 64 | 20 | | public bool HandleObjectNamesAsGroup { get; set; } = false; |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// Normally multiple group names are valid per line e.g. "g group_name1 group_name1" |
| | | 24 | | /// If this flag is set to true, all after the g will be interpreted as a single group name |
| | | 25 | | /// </summary> |
| | | 26 | | /// <remarks> |
| | | 27 | | /// This flag should be set to true, when object files should be interpreted like other libraries like three.js |
| | | 28 | | /// </remarks> |
| | 124 | 29 | | public bool OnlyOneGroupNamePerLine { get; set; } = false; |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Normally whitespaces removed during import e.g. "mtllib wl file 5.mtl" changed to "mtllib wl file 5.mtl" |
| | | 33 | | /// If this flag is set to true, all after the mtllib will be interpreted as a single mtllib reference |
| | | 34 | | /// </summary> |
| | | 35 | | /// <remarks> |
| | | 36 | | /// This flag should be set to true, when object files should be interpreted like other libraries like three.js |
| | | 37 | | /// </remarks> |
| | 40 | 38 | | public bool KeepWhitespacesOfMtlLibReferences { get; set; } = false; |
| | | 39 | | } |