git-svn-id: svn://db.shs.com.ru/libs@636 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-11-27 21:49:24 +00:00
parent 988c4e1150
commit 09298fadcd
22 changed files with 291 additions and 173 deletions

View File

@@ -88,9 +88,12 @@ QGLView::QGLView(): OpenGLWindow(), renderer_(this), mouse(this) {
//camera().aim_ = camera().pos_;
ktm_.restart();
//Mesh * m = Primitive::torus(30, 12, 1., 0.1, 90);
Mesh * m = Primitive::disc(10, 1, 1., true, 90);
QMatrix4x4 mat; mat.rotate(90, 1,0,0);
Mesh * m = Primitive::torus(30, 12, 1., 0.1, 90);
//Mesh * m = Primitive::coneFrame(10, 1, 1., 2.);
//QMatrix4x4 mat;
//mat.rotate(90, 0,1,0);
//mat.translate(0, 0, 2);
//mat.rotate(180, 1,0,0);
//m->transformPoints(mat);
ObjectBase * o = new ObjectBase(m);
o->setColor(Qt::cyan);