BeamNester

class compas_timber.planning.BeamNester[source]

Bases: object

A class for optimizing 1D nesting of beams into stock pieces.

This class implements algorithms to efficiently nest beams from a TimberModel into available stock pieces, minimizing waste and cost.

Parameters:
modelTimberModel

The timber model containing beams to nest

stock_cataloglist[BeamStock]

Available BeamStock pieces for nesting.

spacingfloat, optional

Spacing tolerance for cutting operations (kerf width, etc.)

per_groupbool, optional

Whether to nest beams per group or all together. Default is False (all together).

Attributes:
modelTimberModel

The timber model

stock_cataloglist[BeamStock]

Get the stock catalog.

spacingfloat

Spacing tolerance for cutting operations (kerf width, etc.)

per_groupbool

Whether to nest beams per group or all together. Default is False (all together).

Methods

nest

Perform 1D nesting of all beams in the model.