mirror of
https://github.com/NGSolve/netgen.git
synced 2025-05-10 12:40:49 +05:00
Utility function to draw lines (used for contact boundary in NGSolve)
This commit is contained in:
parent
3f28651e63
commit
60c1151205
@ -57,6 +57,13 @@ namespace netgen
|
||||
return opengl_text_width;
|
||||
}
|
||||
|
||||
void MyOpenGLLines(FlatArray<Point<3>> points)
|
||||
{
|
||||
glBegin(GL_LINES);
|
||||
for (auto p : points)
|
||||
glVertex3dv(&p[0]);
|
||||
glEnd();
|
||||
}
|
||||
|
||||
// texture for color decoding
|
||||
// GLubyte * VisualScene :: colortexture = NULL;
|
||||
|
@ -90,6 +90,7 @@ namespace netgen
|
||||
NGGUI_API extern void Set_OpenGLText_Callback ( void (*fun) (const char * text), int width );
|
||||
NGGUI_API extern VisualScene visual_scene_cross;
|
||||
NGGUI_API extern VisualScene *visual_scene;
|
||||
NGGUI_API extern void MyOpenGLLines (FlatArray<Point<3>> points);
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user