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 } |