Utility function to draw lines (used for contact boundary in NGSolve)

This commit is contained in:
Matthias Hochsteger 2025-04-09 11:39:50 +02:00
parent 3f28651e63
commit 60c1151205
2 changed files with 8 additions and 0 deletions

View File

@ -57,6 +57,13 @@ namespace netgen
return opengl_text_width; 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 // texture for color decoding
// GLubyte * VisualScene :: colortexture = NULL; // GLubyte * VisualScene :: colortexture = NULL;

View File

@ -90,6 +90,7 @@ namespace netgen
NGGUI_API extern void Set_OpenGLText_Callback ( void (*fun) (const char * text), int width ); 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_cross;
NGGUI_API extern VisualScene *visual_scene; NGGUI_API extern VisualScene *visual_scene;
NGGUI_API extern void MyOpenGLLines (FlatArray<Point<3>> points);