Shell
Kind: Class
Domain: Modeling and geometry
Canonical import: from cadflow import Shell
Signature
class Shell(shell: 'Any', cache: 'Optional[_TopologyEntityCache]' = None)
Description
OCP-native connected surface shell with face and edge topology.
Parameters
| Name | Type | Required | Default | Source description |
|---|---|---|---|---|
shell | 'Any' | yes | - | Not explicitly described in the source docstring. |
cache | 'Optional[_TopologyEntityCache]' | no | None | Not explicitly described in the source docstring. |
Returns
Type: Any
The source docstring does not declare additional return semantics.
Errors
The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.
Public members
| Member | Kind | Signature | Description |
|---|---|---|---|
get_area | method | (self) -> 'float' | Return the total area of every face in the shell. |
get_edges | method | (self, index: 'Optional[int]' = None) -> 'Union[List[Edge], Edge]' | See the member signature. |
get_faces | method | (self, index: 'Optional[int]' = None) -> 'Union[List[Face], Face]' | See the member signature. |
get_wires | method | (self, index: 'Optional[int]' = None) -> 'Union[List[Wire], Wire]' | Return the Shell's free boundary wires. |
is_closed | method | (self) -> 'bool' | Return whether the shell bounds a closed region. |
Behavior and constraints
- The contract below is generated from the current public runtime signature. Check domain notes for ownership and workflow constraints.
Import check
from cadflow import Shell