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

Method solid

cadquery/occ_impl/shapes.py:1094–1102  ·  view source on GitHub ↗

Select a single solid.

(self, selector: Selector | str | None = None)

Source from the content-addressed store, hash-verified

1092 )
1093
1094 def solid(self, selector: Selector | str | None = None) -> Solid:
1095 """
1096 Select a single solid.
1097 """
1098
1099 return tcast(
1100 Solid,
1101 self._filter_single(selector, map(Shape.cast, self._entities("Solid"))),
1102 )
1103
1104 def Area(self) -> float:
1105 """

Callers 3

hollowFunction · 0.80
test_single_ent_selectorFunction · 0.80
test_history_boolFunction · 0.80

Calls 2

_filter_singleMethod · 0.95
_entitiesMethod · 0.95

Tested by 2

test_single_ent_selectorFunction · 0.64
test_history_boolFunction · 0.64