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

Method first

cadquery/occ_impl/shapes.py:5617–5625  ·  view source on GitHub ↗

First shape (e.g. bottom face) or first shape generated from s.

(self, s: Shape | None = None)

Source from the content-addressed store, hash-verified

5615 return self._get(self._images, s)
5616
5617 def first(self, s: Shape | None = None) -> Shape:
5618 """
5619 First shape (e.g. bottom face) or first shape generated from s.
5620 """
5621
5622 if s:
5623 return self._get(self._first, s)
5624
5625 return _normalize(self._first_shape)
5626
5627 def last(self, s: Shape | None = None) -> Shape:
5628 """

Callers

nothing calls this directly

Calls 2

_getMethod · 0.95
_normalizeFunction · 0.85

Tested by

no test coverage detected