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

Method shells

cadquery/cq.py:950–971  ·  view source on GitHub ↗

Select the shells of objects on the stack, optionally filtering the selection. If there are multiple objects on the stack, the shells of all objects are collected and a list of all the distinct shells is returned. :param selector: optional Selector object, or string

(
        self: T,
        selector: Optional[Union[Selector, str]] = None,
        tag: Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

948 return self._selectObjects("Solids", selector, tag)
949
950 def shells(
951 self: T,
952 selector: Optional[Union[Selector, str]] = None,
953 tag: Optional[str] = None,
954 ) -> T:
955 """
956 Select the shells of objects on the stack, optionally filtering the selection. If there are
957 multiple objects on the stack, the shells of all objects are collected and a list of all the
958 distinct shells is returned.
959
960 :param selector: optional Selector object, or string selector expression
961 (see :class:`StringSyntaxSelector`)
962 :param tag: if set, search the tagged object instead of self
963 :return: a CQ object whose stack contains all of the *distinct* shells of *all* objects on
964 the current stack, filtered by the provided selector.
965
966 If there are no shells for any objects on the current stack, an empty CQ object is returned
967
968 Most solids will have a single shell, which represents the outer surface. A shell will
969 typically be composed of multiple faces.
970 """
971 return self._selectObjects("Shells", selector, tag)
972
973 def compounds(
974 self: T,

Callers 7

testTagSelectorsMethod · 0.45
testCompoundsMethod · 0.45
testShapeMethod · 0.45
test_solidFunction · 0.45
test_offsetFunction · 0.45

Calls 1

_selectObjectsMethod · 0.95

Tested by 7

testTagSelectorsMethod · 0.36
testCompoundsMethod · 0.36
testShapeMethod · 0.36
test_solidFunction · 0.36
test_offsetFunction · 0.36