Skip to Content
Bear documentation

geometryReferences

Import from bear/engine/geometryReferences.

Type Aliases

ReferenceEdge

type ReferenceEdge = object;

Defined in: bear/engine/geometryReferences.ts:41

Properties

PropertyTypeDescription
dir[dx: number, dy: number, dz: number]Direction vector
kind| "frontLeft" | "frontRight" | "backLeft" | "backRight" | "topFront" | "topBack" | "topLeft" | "topRight" | "bottomFront" | "bottomBack" | "bottomLeft" | "bottomRight"-
lengthnumberThe length of the edge
pointPointThe anchor of the edge

ReferenceExtents

type ReferenceExtents = object;

Defined in: bear/engine/geometryReferences.ts:10

Properties

PropertyTypeDescription
boxBoxBounding box in the node's local frame.
depthnumber-
heightnumber-
kind"extents"-
widthnumber-

ReferenceFace

type ReferenceFace = object;

Defined in: bear/engine/geometryReferences.ts:33

Properties

PropertyTypeDescription
dnumberScalar offset from the origin along the normal
kind"top" | "bottom" | "front" | "back" | "left" | "right"-
n[x: number, y: number, z: number]Normal vector to the face

ReferenceKey

type ReferenceKey = 
  | ReferenceExtents["kind"]
  | ReferencePoint["kind"]
  | ReferenceFace["kind"]
  | ReferenceEdge["kind"];

Defined in: bear/engine/geometryReferences.ts:63


ReferencePoint

type ReferencePoint = object;

Defined in: bear/engine/geometryReferences.ts:19

Properties

PropertyType
kind| "origin" | "bottomFrontLeft" | "bottomFrontRight" | "bottomBackLeft" | "bottomBackRight" | "topFrontLeft" | "topFrontRight" | "topBackLeft" | "topBackRight"
pointPoint

On this page