Skip to content

Commit

Permalink
not sure this is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Oct 30, 2024
1 parent 9143998 commit 129f3e6
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/compas_rv/scene/formobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ def __init__(
self.show_faces = False
self.show_edges = True
self.show_vertices = True

self.show_supports = show_supports
self.show_fixed = show_fixed
self.show_free = show_free

self.show_angles = show_angles

@property
Expand All @@ -44,26 +42,11 @@ def settings(self):
settings["show_supports"] = self.show_supports
settings["show_fixed"] = self.show_fixed
settings["show_free"] = self.show_free

settings["show_angles"] = self.show_angles

return settings

def draw(self):
faces = []
if self.show_faces:
faces += list(self.mesh.faces_where(_is_loaded=True))
if faces:
self.show_faces = faces

for vertex in self.mesh.vertices():
if self.mesh.vertex_attribute(vertex, "is_support"):
self.vertexcolor[vertex] = self.anchorcolor
elif self.mesh.vertex_attribute(vertex, "is_fixed"):
self.vertexcolor[vertex] = self.fixedcolor
else:
self.vertexcolor[vertex] = self.freecolor

return super().draw()

def draw_vertices(self):
Expand Down Expand Up @@ -112,6 +95,3 @@ def draw_faces(self):
pass

return super().draw_faces()

def draw_angles(self):
pass

0 comments on commit 129f3e6

Please sign in to comment.