Skip to main content

CanonicalTriangleBlock

Kind: Class
Domain: Scene and artifacts
Canonical import: from cadflow import CanonicalTriangleBlock

Signature

class CanonicalTriangleBlock(entity_id: 'str', render_key: 'bytes', block_bytes: 'bytes', vertex_keys: 'tuple[bytes, ...]', positions: 'tuple[tuple[float, float, float], ...]', normals: 'tuple[tuple[float, float, float], ...]', triangles: 'tuple[tuple[int, int, int], ...]') -> None

Description

CanonicalTriangleBlock(entity_id: 'str', render_key: 'bytes', block_bytes: 'bytes', vertex_keys: 'tuple[bytes, ...]', positions: 'tuple[tuple[float, float, float], ...]', normals: 'tuple[tuple[float, float, float], ...]', triangles: 'tuple[tuple[int, int, int], ...]')

Other public imports

  • from cadflow.scene import CanonicalTriangleBlock

Parameters

NameTypeRequiredDefaultSource description
entity_id'str'yes-Not explicitly described in the source docstring.
render_key'bytes'yes-Not explicitly described in the source docstring.
block_bytes'bytes'yes-Not explicitly described in the source docstring.
vertex_keys'tuple[bytes, ...]'yes-Not explicitly described in the source docstring.
positions'tuple[tuple[float, float, float], ...]'yes-Not explicitly described in the source docstring.
normals'tuple[tuple[float, float, float], ...]'yes-Not explicitly described in the source docstring.
triangles'tuple[tuple[int, int, int], ...]'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
entity_id'str'required
render_key'bytes'required
block_bytes'bytes'required
vertex_keys'tuple[bytes, ...]'required
positions'tuple[tuple[float, float, float], ...]'required
normals'tuple[tuple[float, float, float], ...]'required
triangles'tuple[tuple[int, int, int], ...]'required

Behavior and constraints

  • Instances are immutable dataclass values; update workflows return a replacement value.

Import check

from cadflow import CanonicalTriangleBlock

See also