Pipeline

class tri3d.geometry.Pipeline(*operations)[source]

A series of operations.

Operations are applied in the provided order.

property single

Whether this is a single transformation or a batch.

__matmul__(other)[source]

Compose transformations together.

The rightmost operation is applied first.

Return type:

Pipeline

apply(x)[source]

Apply transformation to given point or array of points.

The broadcasting rules between transformations and their inputs are as follows:

transform

input

output

brodcast

[]

[3]

[3]

single mapping

[]

[n,3]

[n,3]

broadcast transform

[n]

[3]

[n,3]

broadcst input

[n]

[n]

[n,3]

one-to-one mapping

inv()[source]

Return inverse transformation.