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

Method item

cadquery/cq.py:653–659  ·  view source on GitHub ↗

Return the ith item on the stack. :rtype: a CQ object

(self: T, i: int)

Source from the content-addressed store, hash-verified

651 return self.newObject(self.objects[0:1])
652
653 def item(self: T, i: int) -> T:
654 """
655 Return the ith item on the stack.
656
657 :rtype: a CQ object
658 """
659 return self.newObject([self.objects[i]])
660
661 def last(self: T) -> T:
662 """

Callers 5

testTranslateSolidMethod · 0.80
testTranslateWireMethod · 0.80
testSplitKeepingBothMethod · 0.80
vtk.jsFile · 0.80

Calls 1

newObjectMethod · 0.95

Tested by 4

testTranslateSolidMethod · 0.64
testTranslateWireMethod · 0.64
testSplitKeepingBothMethod · 0.64