Skip to content

Commit b47e2ba

Browse files
committed
pipes v forces
1 parent dded0e8 commit b47e2ba

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/compas_rv/scene/thrustobject.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def draw(self):
102102
self.draw_loads()
103103
if self.session.settings.drawing.show_selfweight:
104104
self.draw_selfweight()
105-
if self.session.settings.drawing.show_forces:
106-
self.draw_forces()
105+
if self.session.settings.drawing.show_pipes:
106+
self.draw_pipes()
107107

108108
return self.guids
109109

@@ -205,10 +205,10 @@ def draw_selfweight(self):
205205
self._guids += guids
206206
return guids
207207

208-
def draw_forces(self):
208+
def draw_pipes(self):
209209
guids = []
210210

211-
scale = self.session.settings.drawing.scale_forces
211+
scale = self.session.settings.drawing.scale_pipes
212212
tol = self.session.settings.drawing.tol_pipes
213213

214214
for edge in self.mesh.edges():

src/compas_rv/settings.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,19 @@ class TNASettings(BaseModel):
1515

1616
class DrawingSettings(BaseModel):
1717
show_angles: bool = False
18+
show_forces: bool = False
19+
1820
show_reactions: bool = True
1921
show_residuals: bool = False
2022
show_pipes: bool = False
2123
show_loads: bool = False
2224
show_selfweight: bool = False
23-
show_pipes: bool = False
25+
2426
show_thickness: bool = False
2527

2628
scale_reactions: float = 0.1
2729
scale_residuals: float = 1.0
28-
scale_forces: float = 1.0
30+
scale_pipes: float = 1.0
2931
scale_loads: float = 1.0
3032
scale_selfweight: float = 1.0
3133

0 commit comments

Comments
 (0)