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

Method last

cadquery/cq.py:661–667  ·  view source on GitHub ↗

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

(self: T)

Source from the content-addressed store, hash-verified

659 return self.newObject([self.objects[i]])
660
661 def last(self: T) -> T:
662 """
663 Return the last item on the stack.
664
665 :rtype: a CQ object
666 """
667 return self.newObject([self.objects[-1]])
668
669 def end(self, n: int = 1) -> "Workplane":
670 """

Callers 4

testSolidMethod · 0.45
test_history_extrudeFunction · 0.45
test_history_sweepFunction · 0.45
test_history_loftFunction · 0.45

Calls 1

newObjectMethod · 0.95

Tested by 4

testSolidMethod · 0.36
test_history_extrudeFunction · 0.36
test_history_sweepFunction · 0.36
test_history_loftFunction · 0.36