We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 729b5a7 commit 22830d7Copy full SHA for 22830d7
src/compas_fab/artists/base.py
@@ -171,7 +171,7 @@ def scale(self, factor):
171
self.robot.scale(factor) # scale the model
172
173
relative_factor = factor / self.scale_factor # relative scaling factor
174
- transformation = Scale([relative_factor] * 3)
+ transformation = Scale.from_factor([relative_factor] * 3)
175
self.scale_link(self.robot.root, transformation)
176
self.scale_factor = factor
177
src/compas_fab/robots/constraints.py
@@ -91,7 +91,7 @@ def from_mesh(cls, mesh):
91
return cls(cls.MESH, mesh)
92
93
def scale(self, scale_factor):
94
- S = Scale([scale_factor] * 3)
+ S = Scale.from_factor([scale_factor] * 3)
95
self.transform(S)
96
97
def transform(self, transformation):
0 commit comments