MCPcopy
hub / github.com/CadQuery/cadquery / scale

Method scale

cadquery/occ_impl/shapes.py:1164–1172  ·  view source on GitHub ↗

Scales this shape through a transformation.

(self, factor: float)

Source from the content-addressed store, hash-verified

1162 return self._apply_transform(T)
1163
1164 def scale(self, factor: float) -> Shape:
1165 """
1166 Scales this shape through a transformation.
1167 """
1168
1169 T = gp_Trsf()
1170 T.SetScale(gp_Pnt(), factor)
1171
1172 return self._apply_transform(T)
1173
1174 def copy(self: T, mesh: bool = False) -> T:
1175 """

Callers 6

vtk.jsFile · 0.80
gfFunction · 0.80
TSFunction · 0.80
aFunction · 0.80
hLFunction · 0.80
PjFunction · 0.80

Calls 1

_apply_transformMethod · 0.95

Tested by

no test coverage detected