Files Classes Functions Hierarchy
#include <halfspaceD3display.h>
Public Member Functions | |
| halfspaceD3display (HS &halfspace_) | |
| void | draw () |
| Draw just the half space geometry. | |
Public Attributes | |
| HS | halfspace |
Definition at line 9 of file halfspaceD3display.h.
| halfspaceD3display< HS >::halfspaceD3display | ( | HS & | halfspace_ | ) | [inline] |
| void halfspaceD3display< HS >::draw | ( | ) | [inline, virtual] |
Draw just the half space geometry.
Implements gobj.
Definition at line 19 of file halfspaceD3display.h.
References halfspaceD3display< HS >::halfspace.
00020 { 00021 00022 glBegin(GL_TRIANGLES); 00023 glVertex3T<GLdouble>()(halfspace.p0); 00024 glVertex3T<GLdouble>()(halfspace.p1); 00025 glVertex3T<GLdouble>()(halfspace.p2); 00026 glEnd(); 00027 glPushMatrix(); 00028 glTranslateT<GLdouble>()( (halfspace.p0+halfspace.p1+halfspace.p2)/3.0 ); 00029 glBegin(GL_LINES); 00030 glVertex3f(0.0,0.0,0.0); 00031 glVertex3f 00032 ( 00033 halfspace.normal.x, 00034 halfspace.normal.y, 00035 halfspace.normal.z 00036 ); 00037 glEnd(); 00038 00039 glPopMatrix(); 00040 }
| HS halfspaceD3display< HS >::halfspace |
1.5.8