Skip to main content

PreviewMeshBuffer

Kind: Class
Domain: Core runtime
Canonical import: from cadflow import PreviewMeshBuffer

Signature

class PreviewMeshBuffer(data: 'bytes', vertex_count: 'int', triangle_count: 'int', index_component_type: 'int', bounds: 'tuple[tuple[float, float, float], tuple[float, float, float]]', positions: 'memoryview', normals: 'memoryview', indices: 'memoryview') -> None

Description

Validated zero-copy views over one native preview mesh buffer.

Other public imports

  • from cadflow.preview import PreviewMeshBuffer

Parameters

NameTypeRequiredDefaultSource description
data'bytes'yes-Not explicitly described in the source docstring.
vertex_count'int'yes-Not explicitly described in the source docstring.
triangle_count'int'yes-Not explicitly described in the source docstring.
index_component_type'int'yes-Not explicitly described in the source docstring.
bounds'tuple[tuple[float, float, float], tuple[float, float, float]]'yes-Not explicitly described in the source docstring.
positions'memoryview'yes-Not explicitly described in the source docstring.
normals'memoryview'yes-Not explicitly described in the source docstring.
indices'memoryview'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
data'bytes'required
vertex_count'int'required
triangle_count'int'required
index_component_type'int'required
bounds'tuple[tuple[float, float, float], tuple[float, float, float]]'required
positions'memoryview'required
normals'memoryview'required
indices'memoryview'required

Behavior and constraints

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

Import check

from cadflow import PreviewMeshBuffer

See also