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

Method placeSketch

cadquery/cq.py:4407–4422  ·  view source on GitHub ↗

Place the provided sketch(es) based on the current items on the stack. :return: Workplane object with the sketch added.

(self: T, *sketches: Sketch)

Source from the content-addressed store, hash-verified

4405 return rv
4406
4407 def placeSketch(self: T, *sketches: Sketch) -> T:
4408 """
4409 Place the provided sketch(es) based on the current items on the stack.
4410
4411 :return: Workplane object with the sketch added.
4412 """
4413
4414 rv = []
4415
4416 for s in sketches:
4417 s_new = s.copy()
4418 s_new.locs = self._locs()
4419
4420 rv.append(s_new)
4421
4422 return self.newObject(rv)
4423
4424 def _repr_javascript_(self) -> Any:
4425 """

Callers 3

test_dxf_textFunction · 0.80
test_dxf_ellipse_arcFunction · 0.80
testSketchMethod · 0.80

Calls 4

_locsMethod · 0.95
newObjectMethod · 0.95
appendMethod · 0.80
copyMethod · 0.45

Tested by 3

test_dxf_textFunction · 0.64
test_dxf_ellipse_arcFunction · 0.64
testSketchMethod · 0.64