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

Method last

cadquery/occ_impl/shapes.py:5627–5635  ·  view source on GitHub ↗

Last shape (e.g. top face) or last shape generated from s.

(self, s: Shape | None = None)

Source from the content-addressed store, hash-verified

5625 return _normalize(self._first_shape)
5626
5627 def last(self, s: Shape | None = None) -> Shape:
5628 """
5629 Last shape (e.g. top face) or last shape generated from s.
5630 """
5631
5632 if s:
5633 return self._get(self._last, s)
5634
5635 return _normalize(self._last_shape)
5636
5637
5638def _combine_hist_dict(d1: dict[Shape, Shape], *ds: dict[Shape, Shape]) -> None:

Callers

nothing calls this directly

Calls 2

_getMethod · 0.95
_normalizeFunction · 0.85

Tested by

no test coverage detected