Set current selection to given locations or points.
(
self: T, locs: Iterable[Union[Location, Point]], tag: Optional[str] = None,
)
| 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, |