Commit 767b1f89 by Alisa Jung

tesselation for torus

parent 51e6b3f4
......@@ -503,7 +503,7 @@ void MyGLWidget::drawTorus(int tesselation){
glBegin(GL_LINE_LOOP);
glutSolidTorus(0.5,1,10,10);
glutSolidTorus(0.5,1,tesselation,tesselation);
glEnd();
}
......
......@@ -65,7 +65,7 @@ RigidBodyTransformation* SceneGraph::addCone(int tesselation){
RigidBodyTransformation* SceneGraph::addTorus(int tesselation){
nextTorusName = "Torus " + torusIndex;
Primitive* p = new Primitive(idCounter,nextTorusName, tesselation, Primitive::Type::TORUS);
Primitive* p = new Primitive(idCounter,nextTorusName, tesselation+2, Primitive::Type::TORUS);
idCounter++;
torusIndex++;
return addPrimitive(p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment