< Summary

Information
Class: JeremyAnsel.Media.WavefrontObj.ObjMaterialFileReaderSettings
Assembly: JeremyAnsel.Media.WavefrontObj
File(s): C:\projects\jeremyansel-media-wavefrontobj\JeremyAnsel.Media.WavefrontObj\JeremyAnsel.Media.WavefrontObj\ObjMaterialFileReaderSettings.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 21
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.cctor()100%11100%
get_KeepWhitespacesOfMapFileReferences()100%11100%
set_KeepWhitespacesOfMapFileReferences(...)100%11100%

File(s)

C:\projects\jeremyansel-media-wavefrontobj\JeremyAnsel.Media.WavefrontObj\JeremyAnsel.Media.WavefrontObj\ObjMaterialFileReaderSettings.cs

#LineLine coverage
 1namespace JeremyAnsel.Media.WavefrontObj;
 2
 3/// <summary>
 4///     Settings to control the behaviour of the <see cref="ObjMaterialFileReader" />
 5/// </summary>
 6public class ObjMaterialFileReaderSettings
 7{
 8    /// <summary>
 9    ///     Default settings
 10    /// </summary>
 411    public static readonly ObjMaterialFileReaderSettings Default = new();
 12
 13    /// <summary>
 14    ///     Normally whitespaces removed during import e.g. "map_kd wl file  5.mtl" changed to "map_kd wl file 5.mtl"
 15    ///     If this flag is set to true, all after the map_kd will be interpreted as a single map_kd reference
 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>
 420    public bool KeepWhitespacesOfMapFileReferences { get; set; } = false;
 21}