Skip to Content
Bear documentation

panelize

Import from bear/engine/panelize.

Interfaces

PanelizeOptions

Defined in: bear/engine/panelize.ts:54

Configures the panel dimensions, gap, and orientation.

Properties

PropertyTypeDescription
gap?MeasurementGap between panels. Defaults to 1/8in.
orientation?"auto" | "vertical" | "horizontal"Panel orientation relative to the surface. - "auto" (default): long edge runs along the surface's longer dimension. - "vertical": long edge runs along the surface's V (height) axis. - "horizontal": long edge runs along the surface's U (width) axis.
overlap?MeasurementOverlap between adjacent courses in the cross direction. Only used by the "overlapping" strategy. Each course overlaps the one below it by this amount (e.g. shingle headlap).
overlapStagger?numberStagger fraction for the "overlapping" strategy (0–1). Controls how much odd rows are offset along the primary axis. Defaults to 1/6 (~6in on a 36in shingle).
panelLength?numberPanel long edge in project units. Defaults to 8ft.
panelWidth?numberPanel short edge in project units. Defaults to 4ft.

PanelPlacement

Defined in: bear/engine/panelize.ts:21

A panel placement in surface-local corner-based coordinates.

Properties

PropertyTypeDescription
heightnumberPanel height (along surface V / Y axis).
layer?numberStacking layer index for overlapping strategies. Course 0 is the bottom layer; each successive course increments by 1.
widthnumberPanel width (along surface U / X axis).
xnumberLeft edge X relative to surface origin.
ynumberBottom edge Y relative to surface origin.

SurfaceOptions

Defined in: bear/engine/panelize.ts:44

Describes the rectangular surface to be panelized.

Properties

PropertyTypeDescription
heightnumberSurface height in project units (V axis).
strategy?PanelStrategyLayout strategy. Defaults to "staggered".
widthnumberSurface width in project units (U axis).

Type Aliases

PanelStrategy

type PanelStrategy = "scaled" | "staggered" | "edgeAligned" | "overlapping";

Defined in: bear/engine/panelize.ts:37

Functions

panelize()

function panelize(surface, options?): PanelPlacement[];

Defined in: bear/engine/panelize.ts:89

Compute panel placements to tile a rectangular surface.

Parameters

ParameterTypeDescription
surfaceSurfaceOptionsSurface dimensions and layout strategy.
options?PanelizeOptionsPanel dimensions, gap, and orientation.

Returns

PanelPlacement[]

Array of panel placements in corner-based coordinates.

On this page