Skip to main content

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

NameTypeRequiredDefaultSource 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

NameTypeDefault
vertices'np.ndarray'required
normals'np.ndarray'required
triangles'np.ndarray'required
panels'tuple[FlexiblePanelRange, ...]'required

Public members

MemberKindSignatureDescription
boundsproperty-See the member signature.
is_watertightproperty-See the member signature.
surface_areaproperty-See the member signature.
triangle_countproperty-See the member signature.
vertex_countproperty-See the member signature.
write_jsonmethod(self, path: 'str | Path') -> 'Path'See the member signature.
write_objmethod(self, path: 'str | Path') -> 'Path'See the member signature.
write_stlmethod(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

See also