| | | 1 | | // <copyright file="ObjFreeFormElement.cs" company="Jérémy Ansel"> |
| | | 2 | | // Copyright (c) 2017, 2019 Jérémy Ansel |
| | | 3 | | // </copyright> |
| | | 4 | | // <license> |
| | | 5 | | // Licensed under the MIT license. See LICENSE.txt |
| | | 6 | | // </license> |
| | | 7 | | |
| | | 8 | | using System.Diagnostics.CodeAnalysis; |
| | | 9 | | |
| | | 10 | | namespace JeremyAnsel.Media.WavefrontObj |
| | | 11 | | { |
| | | 12 | | public abstract class ObjFreeFormElement : ObjElement |
| | | 13 | | { |
| | 624 | 14 | | internal ObjFreeFormElement() |
| | | 15 | | { |
| | 624 | 16 | | this.ParametersU = new List<float>(); |
| | 624 | 17 | | this.ParametersV = new List<float>(); |
| | 624 | 18 | | this.OuterTrimmingCurves = new List<ObjCurveIndex>(); |
| | 624 | 19 | | this.InnerTrimmingCurves = new List<ObjCurveIndex>(); |
| | 624 | 20 | | this.SequenceCurves = new List<ObjCurveIndex>(); |
| | 624 | 21 | | this.SpecialPoints = new List<int>(); |
| | 624 | 22 | | } |
| | | 23 | | |
| | 656 | 24 | | public int MergingGroupNumber { get; set; } |
| | | 25 | | |
| | 820 | 26 | | public ObjFreeFormType FreeFormType { get; set; } |
| | | 27 | | |
| | 816 | 28 | | public bool IsRationalForm { get; set; } |
| | | 29 | | |
| | 752 | 30 | | public int DegreeU { get; set; } |
| | | 31 | | |
| | 892 | 32 | | public int DegreeV { get; set; } |
| | | 33 | | |
| | | 34 | | [SuppressMessage("Performance", "CA1819:Les propriétés ne doivent pas retourner de tableaux", Justification = "R |
| | 888 | 35 | | public float[]? BasicMatrixU { get; set; } |
| | | 36 | | |
| | | 37 | | [SuppressMessage("Performance", "CA1819:Les propriétés ne doivent pas retourner de tableaux", Justification = "R |
| | 888 | 38 | | public float[]? BasicMatrixV { get; set; } |
| | | 39 | | |
| | 752 | 40 | | public float StepU { get; set; } |
| | | 41 | | |
| | 892 | 42 | | public float StepV { get; set; } |
| | | 43 | | |
| | 1080 | 44 | | public ObjApproximationTechnique? CurveApproximationTechnique { get; set; } |
| | | 45 | | |
| | 1088 | 46 | | public ObjApproximationTechnique? SurfaceApproximationTechnique { get; set; } |
| | | 47 | | |
| | 784 | 48 | | public List<float> ParametersU { get; private set; } |
| | | 49 | | |
| | 784 | 50 | | public List<float> ParametersV { get; private set; } |
| | | 51 | | |
| | 844 | 52 | | public List<ObjCurveIndex> OuterTrimmingCurves { get; private set; } |
| | | 53 | | |
| | 844 | 54 | | public List<ObjCurveIndex> InnerTrimmingCurves { get; private set; } |
| | | 55 | | |
| | 844 | 56 | | public List<ObjCurveIndex> SequenceCurves { get; private set; } |
| | | 57 | | |
| | 800 | 58 | | public List<int> SpecialPoints { get; private set; } |
| | | 59 | | } |
| | | 60 | | } |
| | | 61 | | |