1 /* 2 * This file is part of libSavitar 3 * 4 * Copyright (C) 2017 Ultimaker b.v. <j.vankessel@ultimaker.com> 5 * 6 * This program is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU Lesser General Public License as published 8 * by the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU Lesser General Public License for more details. 15 * You should have received a copy of the GNU Lesser General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #ifndef FACE_H 20 #define FACE_H 21 22 #include "SavitarExport.h" 23 24 namespace Savitar 25 { 26 class SAVITAR_EXPORT Face 27 { 28 public: 29 /** 30 * A face uses the index of 3 vertices to describe a triangle 31 */ 32 Face(int v1, int v2, int v3); 33 ~Face(); 34 35 int getV1(); 36 int getV2(); 37 int getV3(); 38 39 protected: 40 int vertex_1_index; 41 int vertex_2_index; 42 int vertex_3_index; 43 }; 44 } 45 46 #endif // FACE_H 47