Checkpoint before solvespace integration

This commit is contained in:
bklronin
2024-06-18 09:53:39 +02:00
parent 92a870e834
commit a64971e0fe
5 changed files with 525 additions and 355 deletions

View File

@@ -73,6 +73,9 @@ class OpenGLWidget(QOpenGLWidget):
except Exception as e:
print(e)
def clear_mesh(self):
self.mesh_loaded = None
def initializeGL(self):
glClearColor(0, 0, 0, 1)
@@ -113,6 +116,9 @@ class OpenGLWidget(QOpenGLWidget):
gluLookAt(cx, cy, cz + 100, cx, cy, cz, 0, 1, 0)
self.draw_mesh_direct(self.mesh_loaded)
else:
glClearColor(0.0, 0.0, 0.0, 1.0) # Set the clear color (black with full opacity)
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) # Clear the color and depth buffers
def draw_stl(self, vertices):