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

Method push

cadquery/sketch.py:483–497  ·  view source on GitHub ↗

Set current selection to given locations or points.

(
        self: T, locs: Iterable[Union[Location, Point]], tag: Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

481 return self.push(locs)
482
483 def push(
484 self: T, locs: Iterable[Union[Location, Point]], tag: Optional[str] = None,
485 ) -> T:
486 """
487 Set current selection to given locations or points.
488 """
489
490 self._selection = [
491 l if isinstance(l, Location) else Location(Vector(l)) for l in locs
492 ]
493
494 if tag:
495 self._tag(self._selection[:], tag)
496
497 return self
498
499 def each(
500 self: T,

Callers 15

rarrayMethod · 0.95
parrayMethod · 0.95
distributeMethod · 0.95
test_rarrayFunction · 0.80
test_parrayFunction · 0.80
test_eachFunction · 0.80
test_modifiersFunction · 0.80
test_deleteFunction · 0.80
test_selectorsFunction · 0.80
s1Function · 0.80
fFunction · 0.80
vtk.jsFile · 0.80

Calls 3

_tagMethod · 0.95
LocationClass · 0.85
VectorClass · 0.85

Tested by 7

test_rarrayFunction · 0.64
test_parrayFunction · 0.64
test_eachFunction · 0.64
test_modifiersFunction · 0.64
test_deleteFunction · 0.64
test_selectorsFunction · 0.64
s1Function · 0.64