BoxMixin is a mixin containing rules that can be used by other designs.
We do not use it alone; instead, it is used to add the rules to other designs.
Parameter Rules
height: | The size of the box in the local Z direction. |
Example: | 1; |
length: | The size of the box in the local X direction. |
Example: | 1; |
width: | The size of the box in the local Y direction. |
Example: | 1; |
Mixins
FrameMixin
RULE NAME |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
length |
Number |
1 |
Inputs |
Cached |
width |
Number |
1 |
Inputs |
Cached |
height |
Number |
1 |
Inputs |
Cached |
volume |
Number |
this.length * this.width * this.height |
Geometry |
Cached |
Right |
Any |
{ origin: this.origin, normal: this.unitX, distance: this.length / 2 } |
Constraint |
Cached |
Front |
Any |
{ origin: this.origin, normal: -this.unitY, distance: this.width/2 } |
Constraint |
Cached |
FaceCenterUp |
Point |
p(0, 0, this.height / 2) |
Geometry |
Cached |
FaceCenterDown |
Point |
p(0, 0, -this.height / 2) |
Geometry |
Cached |
FaceCenterLeft |
Point |
p(-this.length/2, 0, 0) |
Geometry |
Cached |
FaceCenterRight |
Point |
p(this.length/2, 0, 0) |
Geometry |
Cached |
FaceCenterFront |
Point |
p(0, -this.width/2, 0) |
Geometry |
Cached |
FaceCenterBack |
Point |
p(0, this.width/2, 0) |
Geometry |
Cached |
EdgeCenterFU |
Point |
p(0, this.width / 2, this.height / 2) |
Geometry |
Cached |
EdgeCenterRF |
Point |
p(this.length / 2, this.width / 2, 0) |
Geometry |
Cached |
EdgeCenterRB |
Point |
p(this.length / 2, -this.width / 2, 0) |
Geometry |
Cached |
EdgeCenterRU |
Point |
p(this.length / 2, 0, this.height / 2) |
Geometry |
Cached |
EdgeCenterRD |
Point |
p(this.length / 2, 0, -this.height / 2) |
Geometry |
Cached |
VertexLFD |
Point |
p(-this.length / 2, -this.width / 2, -this.height / 2) |
Geometry |
Cached |
VertexRFD |
Point |
p(this.length / 2, -this.width / 2, -this.height / 2) |
Geometry |
Cached |
VertexRFU |
Point |
p(this.length / 2, -this.width / 2, this.height / 2) |
Geometry |
Cached |
VertexLFU |
Point |
p(-this.length / 2, -this.width / 2, this.height / 2) |
Geometry |
Cached |
VertexLBD |
Point |
p(-this.length / 2, this.width / 2, -this.height / 2) |
Geometry |
Cached |
VertexRBD |
Point |
p(this.length / 2, this.width / 2, -this.height / 2) |
Geometry |
Cached |
VertexRBU |
Point |
p(this.length / 2, this.width / 2, this.height / 2) |
Geometry |
Cached |
VertexLBU |
Point |
p(-this.length / 2, this.width / 2, this.height / 2) |
Geometry |
Cached |
Block
Cone
Cylinder
Torus