API referenceBlueprints
RafterFraming
Import from bear/blueprints/RafterFraming.
Interfaces
RafterFramingProps
Defined in: bear/blueprints/RafterFraming.tsx:18
Properties
| Property | Type | Description |
|---|---|---|
children? | | BearElement<object> | BearElement<object>[] | - |
length | number | Span length (X axis) in project units, centered at x = 0. |
onCenter? | number | Rafter spacing in project units. Defaults to 16" OC (512 pu). |
pitch? | string | Roof pitch in rise:run format (e.g. "6:12"). Defaults to "6:12". |
rafterSize? | RafterSize | Nominal lumber size for rafters. Defaults to "2x8". |
transform? | TransformMatrix | Pose in the parent frame, about the plan center at the low-edge bottom elevation. |
width | number | Width (Y axis) in project units, centered at y = 0. |
Type Aliases
RafterSize
type RafterSize = "2x6" | "2x8" | "2x10" | "2x12";Defined in: bear/blueprints/RafterFraming.tsx:16
Nominal lumber sizes suitable for rafters.
Functions
RafterFraming()
function RafterFraming(__namedParameters): BearElement;Defined in: bear/blueprints/RafterFraming.tsx:139
RafterFraming — assembly function for roof rafter framing (shed roof).
Creates rafters running along the X axis (the slope direction), spaced along Y. The roof slopes from z=0 at the low edge (-X) to z=rise at the high edge (+X). Rafters stand on edge perpendicular to the slope.
Publishes top/bottom face surfaces for downstream layers (e.g. roof sheathing) to consume via FaceRefs.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | RafterFramingProps |