Skip to content

Commit 60c1151

Browse files
committed
Utility function to draw lines (used for contact boundary in NGSolve)
1 parent 3f28651 commit 60c1151

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libsrc/visualization/mvdraw.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ namespace netgen
5757
return opengl_text_width;
5858
}
5959

60+
void MyOpenGLLines(FlatArray<Point<3>> points)
61+
{
62+
glBegin(GL_LINES);
63+
for (auto p : points)
64+
glVertex3dv(&p[0]);
65+
glEnd();
66+
}
6067

6168
// texture for color decoding
6269
// GLubyte * VisualScene :: colortexture = NULL;

libsrc/visualization/mvdraw.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ namespace netgen
9090
NGGUI_API extern void Set_OpenGLText_Callback ( void (*fun) (const char * text), int width );
9191
NGGUI_API extern VisualScene visual_scene_cross;
9292
NGGUI_API extern VisualScene *visual_scene;
93+
NGGUI_API extern void MyOpenGLLines (FlatArray<Point<3>> points);
9394

9495

9596

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy