Skip to main content

translate

Kind: Function
Domain: Modeling and geometry
Canonical import: from cadflow import translate

Signature

def translate(shape: 'AnyShape', vector: 'Tuple[float, float, float]') -> 'AnyShape'

Description

Translate a shape by an offset vector.

Other public imports

  • from cadflow import translate_shape

Parameters

NameTypeRequiredDefaultSource description
shape'AnyShape'yes-Not explicitly described in the source docstring.
vector'Tuple[float, float, float]'yes-Not explicitly described in the source docstring.

Returns

Type: 'AnyShape'

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.

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 translate

See also