1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
model3D * objBase = new model3D();
objBase->triangleList.addItem(mappedTriangle(0, 1, 3, cRed));
objBase->triangleList.addItem(mappedTriangle(1, 2, 3, cRed));
objBase->triangleList.addItem(mappedTriangle(4, 5, 6, cGreen));
objBase->triangleList.addItem(mappedTriangle(4, 6, 7, cGreen));
objBase->triangleList.addItem(mappedTriangle(2, 3, 7, cBlue));
objBase->triangleList.addItem(mappedTriangle(2, 6, 7, cBlue));
objBase->triangleList.addItem(mappedTriangle(0, 4, 5, cPurple));
objBase->triangleList.addItem(mappedTriangle(0, 1, 5, cPurple));
objBase->triangleList.addItem(mappedTriangle(3, 4, 7, cOrange));
objBase->triangleList.addItem(mappedTriangle(0, 3, 4, cOrange));
objBase->triangleList.addItem(mappedTriangle(1, 2, 5, cYellow));
objBase->triangleList.addItem(mappedTriangle(2, 5, 6, cYellow));
objBase->pointList.addItem(coordinate(-50, -60, -50));
objBase->pointList.addItem(coordinate(-50, -20, -50));
objBase->pointList.addItem(coordinate(50, -20, -50));
objBase->pointList.addItem(coordinate(50, -60, -50));
objBase->pointList.addItem(coordinate(-50, -60, 50));
objBase->pointList.addItem(coordinate(-50, -20, 50));
objBase->pointList.addItem(coordinate(50, -20, 50));
objBase->pointList.addItem(coordinate(50, -60, 50));
dModel->modelList.addItem(objBase);
|