MCPcopy Index your code
hub / github.com/CadQuery/cadquery / clear

Method clear

cadquery/fig.py:431–441  ·  view source on GitHub ↗

Clear specified objects. If no arguments are passed, clears all objects.

(self, *shapes: Shape | vtkProp3D)

Source from the content-addressed store, hash-verified

429 self.view.update()
430
431 def clear(self, *shapes: Shape | vtkProp3D):
432 """
433 Clear specified objects. If no arguments are passed, clears all objects.
434 """
435
436 # reset last, bc we don't want to keep track of what was removed
437 self.last = None
438 future = self._run(self._clear(shapes))
439 future.result()
440
441 return self
442
443 async def _pop(self):
444

Callers 13

clearFunction · 0.95
_clearMethod · 0.45
checkFunction · 0.45
test_figFunction · 0.45
MdFunction · 0.45
TFFunction · 0.45
mVFunction · 0.45
pGFunction · 0.45
AHFunction · 0.45
dKFunction · 0.45
eFunction · 0.45
vtk.jsFile · 0.45

Calls 2

_runMethod · 0.95
_clearMethod · 0.95

Tested by 1

test_figFunction · 0.36