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

Method all

cadquery/cq.py:346–356  ·  view source on GitHub ↗

Return a list of all CQ objects on the stack. useful when you need to operate on the elements individually. Contrast with vals, which returns the underlying objects for all of the items on the stack

(self: T)

Source from the content-addressed store, hash-verified

344 return self.newObject(rv)
345
346 def all(self: T) -> List[T]:
347 """
348 Return a list of all CQ objects on the stack.
349
350 useful when you need to operate on the elements
351 individually.
352
353 Contrast with vals, which returns the underlying
354 objects for all of the items on the stack
355 """
356 return [self.newObject([o]) for o in self.objects]
357
358 def size(self) -> int:
359 """

Callers 14

testEnclosureMethod · 0.80
test_assembleEdgesMethod · 0.80
testUnionCompoundMethod · 0.80
testAllMethod · 0.80
fxFunction · 0.80
NDFunction · 0.80
vEFunction · 0.80
dIFunction · 0.80
uUFunction · 0.80
hzFunction · 0.80
UKFunction · 0.80

Calls 1

newObjectMethod · 0.95

Tested by 5

testEnclosureMethod · 0.64
test_assembleEdgesMethod · 0.64
testUnionCompoundMethod · 0.64
testAllMethod · 0.64