FlexibleMesh
Kind: Class
Domain: Flexible geometry
Canonical import: from cadflow.flexible import FlexibleMesh
Signature
class FlexibleMesh(vertices: 'np.ndarray', normals: 'np.ndarray', triangles: 'np.ndarray', panels: 'tuple[FlexiblePanelRange, ...]') -> None
Description
FlexibleMesh(vertices: 'np.ndarray', normals: 'np.ndarray', triangles: 'np.ndarray', panels: 'tuple[FlexiblePanelRange, ...]')
Parameters
| Name | Type | Required | Default | Source description |
|---|---|---|---|---|
vertices | 'np.ndarray' | yes | - | Not explicitly described in the source docstring. |
normals | 'np.ndarray' | yes | - | Not explicitly described in the source docstring. |
triangles | 'np.ndarray' | yes | - | Not explicitly described in the source docstring. |
panels | 'tuple[FlexiblePanelRange, ...]' | yes | - | Not explicitly described in the source docstring. |
Returns
Type: None
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.
Data fields
| Name | Type | Default |
|---|---|---|
vertices | 'np.ndarray' | required |
normals | 'np.ndarray' | required |
triangles | 'np.ndarray' | required |
panels | 'tuple[FlexiblePanelRange, ...]' | required |
Public members
| Member | Kind | Signature | Description |
|---|---|---|---|
bounds | property | - | See the member signature. |
is_watertight | property | - | See the member signature. |
surface_area | property | - | See the member signature. |
triangle_count | property | - | See the member signature. |
vertex_count | property | - | See the member signature. |
write_json | method | (self, path: 'str | Path') -> 'Path' | See the member signature. |
write_obj | method | (self, path: 'str | Path') -> 'Path' | See the member signature. |
write_stl | method | (self, path: 'str | Path') -> 'Path' | Write a binary STL containing the complete static shell model. |
Behavior and constraints
- Instances are immutable dataclass values; update workflows return a replacement value.
Import check
from cadflow.flexible import FlexibleMesh