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

Method sketch

cadquery/cq.py:4393–4405  ·  view source on GitHub ↗

Initialize and return a sketch :return: Sketch object with the current workplane as a parent.

(self: T)

Source from the content-addressed store, hash-verified

4391 return locs
4392
4393 def sketch(self: T) -> Sketch:
4394 """
4395 Initialize and return a sketch
4396
4397 :return: Sketch object with the current workplane as a parent.
4398 """
4399
4400 parent = self.newObject([])
4401
4402 rv = Sketch(parent=parent, locs=self._locs())
4403 parent.objects.append(rv)
4404
4405 return rv
4406
4407 def placeSketch(self: T, *sketches: Sketch) -> T:
4408 """

Callers 2

testSketchMethod · 0.80
test_workplane_iterMethod · 0.80

Calls 4

newObjectMethod · 0.95
_locsMethod · 0.95
SketchClass · 0.85
appendMethod · 0.80

Tested by 2

testSketchMethod · 0.64
test_workplane_iterMethod · 0.64