| | 1 | | // <copyright file="ObjGroup.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 | | namespace JeremyAnsel.Media.WavefrontObj |
| | 9 | | { |
| | 10 | | [System.Diagnostics.DebuggerDisplay("Group:{Name}")] |
| | 11 | | public class ObjGroup |
| | 12 | | { |
| 1116 | 13 | | public ObjGroup() |
| | 14 | | { |
| 1116 | 15 | | this.Points = new List<ObjPoint>(); |
| 1116 | 16 | | this.Lines = new List<ObjLine>(); |
| 1116 | 17 | | this.Faces = new List<ObjFace>(); |
| 1116 | 18 | | this.Curves = new List<ObjCurve>(); |
| 1116 | 19 | | this.Curves2D = new List<ObjCurve2D>(); |
| 1116 | 20 | | this.Surfaces = new List<ObjSurface>(); |
| 1116 | 21 | | } |
| | 22 | |
|
| | 23 | | public ObjGroup(string name) |
| 81 | 24 | | : this() |
| | 25 | | { |
| 81 | 26 | | this.Name = name; |
| 81 | 27 | | } |
| | 28 | |
|
| 1296 | 29 | | public string Name { get; set; } = string.Empty; |
| | 30 | |
|
| 1233 | 31 | | public List<ObjPoint> Points { get; private set; } |
| | 32 | |
|
| 1134 | 33 | | public List<ObjLine> Lines { get; private set; } |
| | 34 | |
|
| 1146 | 35 | | public List<ObjFace> Faces { get; private set; } |
| | 36 | |
|
| 1242 | 37 | | public List<ObjCurve> Curves { get; private set; } |
| | 38 | |
|
| 1296 | 39 | | public List<ObjCurve2D> Curves2D { get; private set; } |
| | 40 | |
|
| 1182 | 41 | | public List<ObjSurface> Surfaces { get; private set; } |
| | 42 | | } |
| | 43 | | } |
| | 44 | |
|