SheetGood
Import from bear/blueprints/materials/SheetGood.
Interfaces
SheetGoodBaseProps
Defined in: bear/blueprints/materials/SheetGood.ts:21
Base props shared by all sheet-good types (OSB, Plywood, Drywall, etc.).
Extended by
Properties
| Property | Type | Description |
|---|---|---|
face | | Surface | Ref | Authored as a Ref (resolved when the node is collected) or a literal Surface. |
panelRegion? | PanelPlacement | - |
product? | string | - |
SheetGoodProps
Defined in: bear/blueprints/materials/SheetGood.ts:28
Base props shared by all sheet-good types (OSB, Plywood, Drywall, etc.).
Extends
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
face | | Surface | Ref | Authored as a Ref (resolved when the node is collected) or a literal Surface. | SheetGoodBaseProps.face |
panelRegion? | PanelPlacement | - | SheetGoodBaseProps.panelRegion |
product? | string | - | SheetGoodBaseProps.product |
thickness | number | - | - |
Variables
default
const default: PartDef<SheetGoodProps, string, string>;Defined in: bear/blueprints/materials/SheetGood.ts:236
SheetGood: a part that extrudes a surface into manifold geometry.
Expects face (a Surface, or a Ref to one) and thickness in its props.
If panelRegion (a PanelPlacement) is provided, the sheet is just that
sub-region of the surface instead of the full area. Its parent (Panels)
poses it on the face with sheetGoodTransform.
Functions
extractShapeData()
function extractShapeData(geometry): CrossSectionData | undefined;Defined in: bear/blueprints/materials/SheetGood.ts:208
Extract the 2D outline of a part's solid as polygon data. Projects the manifold onto the X-Y plane and returns the outer boundary, canonicalized so identical shapes produce equal arrays. Used by sheet goods to show the panel shape in the parts list, outside materialize, so it frees its own projection.
Parameters
| Parameter | Type |
|---|---|
geometry | Geometry |
Returns
CrossSectionData | undefined
sheetExtents()
function sheetExtents(
props,
resolved,
thickness
): Box;Defined in: bear/blueprints/materials/SheetGood.ts:83
The sheet's size, centered on its local origin: face-space width and height by thickness.
Parameters
| Parameter | Type |
|---|---|
props | SheetGoodBaseProps |
resolved | ResolvedRefs |
thickness | number |
Returns
sheetFootprint()
function sheetFootprint(face, region):
| {
cross: CrossSection;
height: number;
minX: number;
minY: number;
width: number;
}
| undefined;Defined in: bear/blueprints/materials/SheetGood.ts:45
A sheet's footprint on its face, in face space: the face boundary clipped
to the panel region. Undefined when nothing is left (a region off the
face). This is the one place the 2D shape is computed; extents, geometry
and placement all read it. Openings are not here: a cuts edge takes
the hole out of the built solid.
Parameters
| Parameter | Type |
|---|---|
face | Surface |
region | PanelPlacement | undefined |
Returns
| {
cross: CrossSection;
height: number;
minX: number;
minY: number;
width: number;
}
| undefined
sheetGeometry()
function sheetGeometry(
props,
resolved,
thickness,
material
): Geometry;Defined in: bear/blueprints/materials/SheetGood.ts:99
The sheet's solid: the footprint extruded to thickness, centered on the local origin so identical shapes produce identical manifolds.
Parameters
| Parameter | Type |
|---|---|
props | SheetGoodBaseProps |
resolved | ResolvedRefs |
thickness | number |
material | MaterialDescriptor |
Returns
sheetGoodTransform()
function sheetGoodTransform(
face,
region,
thickness
):
| TransformMatrix
| undefined;Defined in: bear/blueprints/materials/SheetGood.ts:126
Where a sheet sits on its face: its footprint's center, in the face's
frame, as the sheet's local transform. The parent (Panels) states this
as the sheet element's transform prop.
Parameters
| Parameter | Type |
|---|---|
face | Surface |
region | PanelPlacement | undefined |
thickness | number |
Returns
| TransformMatrix
| undefined