src/linetypes/triangle.cpp

changeset 1269
ec691d9472b3
parent 1263
0256edecda54
child 1326
69a90bd2dba2
equal deleted inserted replaced
1268:7cbdaefda950 1269:ec691d9472b3
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #include "triangle.h" 19 #include "triangle.h"
20 20
21 LDTriangle::LDTriangle(Model *model) : 21 LDTriangle::LDTriangle(const Vertex& v1, const Vertex& v2, const Vertex& v3)
22 LDObject {model} {}
23
24 LDTriangle::LDTriangle(const Vertex& v1, const Vertex& v2, const Vertex& v3, Model* model) :
25 LDObject {model}
26 { 22 {
27 setVertex(0, v1); 23 setVertex(0, v1);
28 setVertex(1, v2); 24 setVertex(1, v2);
29 setVertex(2, v3); 25 setVertex(2, v3);
30 } 26 }

mercurial