Skip to Content
Bear documentation
API referenceBlueprintsConnectors

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

PropertyTypeDescription
directionVector3Where it points in the connector's frame; unit length.
extentnumberThe 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

PropertyType
axesreadonly [MemberAxis, MemberAxis, MemberAxis]
centerVector3

SquareMember

Defined in: bear/blueprints/connectors/members.ts:50

A member that is plumb or level: one axis standing, two lying level.

Extends

Properties

PropertyTypeInherited from
axesreadonly [MemberAxis, MemberAxis, MemberAxis]MemberFrame.axes
centerVector3MemberFrame.center
levelreadonly [MemberAxis, MemberAxis]-
plumbMemberAxis-

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

ParameterType
memberMemberFrame
axisMemberAxis
planeWorldPlane | 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

ParameterType
axisMemberAxis
towardsVector3

Returns

MemberAxis


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

ParameterType
directionVector3

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

ParameterType
rolePlacedRole

Returns

MemberFrame


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

ParameterType
memberMemberFrame
directionVector3

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

ParameterType
rolePlacedRole
modelstring

Returns

SquareMember


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

ParameterType
memberSquareMember

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

ParameterType
rolePlacedRole

Returns

SquareMember | undefined

On this page