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

Method located

cadquery/sketch.py:1136–1144  ·  view source on GitHub ↗

Create a partial copy of the sketch with a new location.

(self: T, loc: Location)

Source from the content-addressed store, hash-verified

1134 return rv
1135
1136 def located(self: T, loc: Location) -> T:
1137 """
1138 Create a partial copy of the sketch with a new location.
1139 """
1140
1141 rv = self.__class__(locs=(loc,))
1142 rv._faces = self._faces.copy()
1143
1144 return rv
1145
1146 def finalize(self) -> Any:
1147 """

Callers 12

rectMethod · 0.45
circleMethod · 0.45
ellipseMethod · 0.45
cylindersMethod · 0.45
test_locatedFunction · 0.45
makeCubesMethod · 0.45
cylindersMethod · 0.45
_makePolygonMethod · 0.45
testLocatedMovedMethod · 0.45
testCutEachMethod · 0.45
next_box_shellMethod · 0.45
next_boxMethod · 0.45

Calls 1

copyMethod · 0.45

Tested by 9

cylindersMethod · 0.36
test_locatedFunction · 0.36
makeCubesMethod · 0.36
cylindersMethod · 0.36
_makePolygonMethod · 0.36
testLocatedMovedMethod · 0.36
testCutEachMethod · 0.36
next_box_shellMethod · 0.36
next_boxMethod · 0.36