| | 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 | | { |
| 468 | 14 | | internal ObjFreeFormElement() |
| | 15 | | { |
| 468 | 16 | | this.ParametersU = new List<float>(); |
| 468 | 17 | | this.ParametersV = new List<float>(); |
| 468 | 18 | | this.OuterTrimmingCurves = new List<ObjCurveIndex>(); |
| 468 | 19 | | this.InnerTrimmingCurves = new List<ObjCurveIndex>(); |
| 468 | 20 | | this.SequenceCurves = new List<ObjCurveIndex>(); |
| 468 | 21 | | this.SpecialPoints = new List<int>(); |
| 468 | 22 | | } |
| | 23 | |
|
| 492 | 24 | | public int MergingGroupNumber { get; set; } |
| | 25 | |
|
| 615 | 26 | | public ObjFreeFormType FreeFormType { get; set; } |
| | 27 | |
|
| 612 | 28 | | public bool IsRationalForm { get; set; } |
| | 29 | |
|
| 564 | 30 | | public int DegreeU { get; set; } |
| | 31 | |
|
| 669 | 32 | | public int DegreeV { get; set; } |
| | 33 | |
|
| | 34 | | [SuppressMessage("Performance", "CA1819:Les propriétés ne doivent pas retourner de tableaux", Justification = "R |
| 666 | 35 | | public float[]? BasicMatrixU { get; set; } |
| | 36 | |
|
| | 37 | | [SuppressMessage("Performance", "CA1819:Les propriétés ne doivent pas retourner de tableaux", Justification = "R |
| 666 | 38 | | public float[]? BasicMatrixV { get; set; } |
| | 39 | |
|
| 564 | 40 | | public float StepU { get; set; } |
| | 41 | |
|
| 669 | 42 | | public float StepV { get; set; } |
| | 43 | |
|
| 810 | 44 | | public ObjApproximationTechnique? CurveApproximationTechnique { get; set; } |
| | 45 | |
|
| 816 | 46 | | public ObjApproximationTechnique? SurfaceApproximationTechnique { get; set; } |
| | 47 | |
|
| 588 | 48 | | public List<float> ParametersU { get; private set; } |
| | 49 | |
|
| 588 | 50 | | public List<float> ParametersV { get; private set; } |
| | 51 | |
|
| 633 | 52 | | public List<ObjCurveIndex> OuterTrimmingCurves { get; private set; } |
| | 53 | |
|
| 633 | 54 | | public List<ObjCurveIndex> InnerTrimmingCurves { get; private set; } |
| | 55 | |
|
| 633 | 56 | | public List<ObjCurveIndex> SequenceCurves { get; private set; } |
| | 57 | |
|
| 600 | 58 | | public List<int> SpecialPoints { get; private set; } |
| | 59 | | } |
| | 60 | | } |
| | 61 | |
|