Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
grapa_alisa
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Alisa Jung
grapa_alisa
Commits
767b1f89
Commit
767b1f89
authored
Nov 21, 2015
by
Alisa Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tesselation for torus
parent
51e6b3f4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
myglwidget.cpp
helloqube/myglwidget.cpp
+1
-1
scenegraph.cpp
helloqube/scenegraph.cpp
+1
-1
No files found.
helloqube/myglwidget.cpp
View file @
767b1f89
...
...
@@ -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
();
}
...
...
helloqube/scenegraph.cpp
View file @
767b1f89
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment