diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-06-24 22:38:31 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-06-24 22:38:31 (GMT) |
commit | bea704f141c92d2076a0102556203dab0246e39f (patch) | |
tree | 8e2878c4557165b4cf9222b6cf68994adab90cd1 /glview.cc | |
parent | cf15ce518535837fa993ce9a6c631e6c5755165a (diff) |
Clifford Wolf:
Added TrownTogether view mode
git-svn-id: http://svn.clifford.at/openscad/trunk@18 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'glview.cc')
-rw-r--r-- | glview.cc | 24 |
1 files changed, 2 insertions, 22 deletions
@@ -77,30 +77,10 @@ void GLView::paintGL() glEnd(); #endif - if (renderfunc) - renderfunc(renderfunc_vp); - glColor3d(1.0, 0.0, 0.0); - for (int i=0; i<polygons.size(); i++) { - Polygon *poly = &polygons[i]; - glBegin(GL_POLYGON); - for (int j=0; j<poly->size(); j++) { - const Point *p = &poly->at(j); - glVertex3d(p->x, p->y, p->z); - } - glEnd(); - } - glColor3d(0.5, 0.0, 0.0); - for (int i=0; i<polygons.size(); i++) { - Polygon *poly = &polygons[i]; - glBegin(GL_LINE_LOOP); - for (int j=0; j<poly->size(); j++) { - const Point *p = &poly->at(j); - glVertex3d(p->x, p->y, p->z); - } - glEnd(); - } + if (renderfunc) + renderfunc(renderfunc_vp); } void GLView::wheelEvent(QWheelEvent *event) |