Checkpoint before solvespace integration
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user