Skip to content

Commit

Permalink
clean up after deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Nov 8, 2024
1 parent 205e3e9 commit ff02bd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/compas_rhino/scene/meshobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def clear(self):
"""
compas_rhino.objects.delete_objects(self.guids, purge=True)
self.guids = []

def clear_vertices(self):
"""Delete all vertices drawn by this scene object.
Expand All @@ -84,6 +85,7 @@ def clear_vertices(self):
"""
compas_rhino.objects.delete_objects(self._guid_vertex, purge=True)
self._guid_vertex = {}

def clear_edges(self):
"""Delete all edges drawn by this scene object.
Expand All @@ -94,6 +96,7 @@ def clear_edges(self):
"""
compas_rhino.objects.delete_objects(self._guid_edge, purge=True)
self._guid_edge = {}

def clear_faces(self):
"""Delete all faces drawn by this scene object.
Expand All @@ -104,6 +107,7 @@ def clear_faces(self):
"""
compas_rhino.objects.delete_objects(self._guid_face, purge=True)
self._guid_face = {}

# ==========================================================================
# draw
Expand Down

0 comments on commit ff02bd2

Please sign in to comment.