members
Import from bear/blueprints/connectors/members.
Interfaces
MemberAxis
Defined in: bear/blueprints/connectors/members.ts:36
One of a member's own axes, as the connector sees it.
Properties
| Property | Type | Description |
|---|---|---|
direction | Vector3 | Where it points in the connector's frame; unit length. |
extent | number | The member's own extent along it: the dimension it was cut to. |
MemberFrame
Defined in: bear/blueprints/connectors/members.ts:44
A member in the connector's frame: its center and its three axes.
Extended by
Properties
| Property | Type |
|---|---|
axes | readonly [MemberAxis, MemberAxis, MemberAxis] |
center | Vector3 |
SquareMember
Defined in: bear/blueprints/connectors/members.ts:50
A member that is plumb or level: one axis standing, two lying level.
Extends
Properties
| Property | Type | Inherited from |
|---|---|---|
axes | readonly [MemberAxis, MemberAxis, MemberAxis] | MemberFrame.axes |
center | Vector3 | MemberFrame.center |
level | readonly [MemberAxis, MemberAxis] | - |
plumb | MemberAxis | - |
Functions
faceOffset()
function faceOffset(
member,
axis,
plane
): number;Defined in: bear/blueprints/connectors/members.ts:165
How far a member's face stands along one of its axes, from the frame's origin: the plane the connector meets it on. The named port wins when the author pointed at one, since that is the author saying which face.
Parameters
| Parameter | Type |
|---|---|
member | MemberFrame |
axis | MemberAxis |
plane | WorldPlane | undefined |
Returns
number
facing()
function facing(axis, towards): MemberAxis;Defined in: bear/blueprints/connectors/members.ts:154
The axis pointed the way asked for: direction flipped, if need be, to
face the same way as towards. An axis is a line, not an arrow, and
which end of it a connector wants is always something the connector
knows (the side the joist is on, the way the post leaves).
Parameters
| Parameter | Type |
|---|---|
axis | MemberAxis |
towards | Vector3 |
Returns
levelled()
function levelled(direction): Vector3;Defined in: bear/blueprints/connectors/members.ts:144
A level direction with the float noise taken out of its z, so a frame built on it and on plumb is square: a post base stands on concrete and a hanger hangs plumb, whatever the tolerance let through.
Parameters
| Parameter | Type |
|---|---|
direction | Vector3 |
Returns
Vector3
memberFrame()
function memberFrame(role): MemberFrame;Defined in: bear/blueprints/connectors/members.ts:65
The member a role resolved to, read in the connector's frame.
Parameters
| Parameter | Type |
|---|---|
role | PlacedRole |
Returns
memberSpan()
function memberSpan(member, direction): [number, number];Defined in: bear/blueprints/connectors/members.ts:126
A member's interval along a unit direction: its own box, oriented, rather than the box it swells to in the connector's frame.
Parameters
| Parameter | Type |
|---|---|
member | MemberFrame |
direction | Vector3 |
Returns
[number, number]
plumbOrLevel()
function plumbOrLevel(role, model): SquareMember;Defined in: bear/blueprints/connectors/members.ts:106
The member as plumb or level, for a connector whose contract is that it
is. Anything else is the precondition failing, named, for place to
report; check reads squareMember and leaves the member to it.
Parameters
| Parameter | Type |
|---|---|
role | PlacedRole |
model | string |
Returns
plumbSpan()
function plumbSpan(member): [number, number];Defined in: bear/blueprints/connectors/members.ts:117
A plumb member's bottom and top, in the connector's frame.
Parameters
| Parameter | Type |
|---|---|
member | SquareMember |
Returns
[number, number]
squareMember()
function squareMember(role): SquareMember | undefined;Defined in: bear/blueprints/connectors/members.ts:89
The member as plumb or level, or nothing when it is neither.
Parameters
| Parameter | Type |
|---|---|
role | PlacedRole |
Returns
SquareMember | undefined