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

Method moved

cadquery/occ_impl/shapes.py:1296–1301  ·  view source on GitHub ↗

Apply a Shape as a Location in relative sense (i.e. update current location) to a copy of self.

(self: T, s: Shape)

Source from the content-addressed store, hash-verified

1294
1295 @multimethod
1296 def moved(self: T, s: Shape) -> Shape:
1297 """
1298 Apply a Shape as a Location in relative sense (i.e. update current location) to a copy of self.
1299 """
1300
1301 return self.moved(s.toLocs())
1302
1303 @multimethod
1304 def moved(self: T, loc: Location) -> T:

Callers 4

textFunction · 0.45
extrudeFunction · 0.45
toFusedCAFFunction · 0.45
imprintFunction · 0.45

Calls 4

_compound_or_shapeFunction · 0.85
LocationClass · 0.85
toLocsMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected