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

Method first

cadquery/cq.py:644–651  ·  view source on GitHub ↗

Return the first item on the stack :returns: the first item on the stack. :rtype: a CQ object

(self: T)

Source from the content-addressed store, hash-verified

642 return out
643
644 def first(self: T) -> T:
645 """
646 Return the first item on the stack
647
648 :returns: the first item on the stack.
649 :rtype: a CQ object
650 """
651 return self.newObject(self.objects[0:1])
652
653 def item(self: T, i: int) -> T:
654 """

Callers 12

testWorkplaneFromFaceMethod · 0.45
testFrontReferenceMethod · 0.45
testRotateMethod · 0.45
test2DDrawingMethod · 0.45
testSlot2DMethod · 0.45
testFirstMethod · 0.45
testSolidMethod · 0.45
test_history_extrudeFunction · 0.45
test_history_sweepFunction · 0.45
test_history_loftFunction · 0.45
vtk.jsFile · 0.45

Calls 1

newObjectMethod · 0.95

Tested by 11

testWorkplaneFromFaceMethod · 0.36
testFrontReferenceMethod · 0.36
testRotateMethod · 0.36
test2DDrawingMethod · 0.36
testSlot2DMethod · 0.36
testFirstMethod · 0.36
testSolidMethod · 0.36
test_history_extrudeFunction · 0.36
test_history_sweepFunction · 0.36
test_history_loftFunction · 0.36