omdl  v1.0
OpenSCAD Mechanical Design Library
Rectangular Enclosure Stand

Stand maker for rectangular prism enclosures. More...

+ Collaboration diagram for Rectangular Enclosure Stand:

Files

file  enclosure_stand_rectangle.scad
 A stand maker for rectangular prism project boxes, housings, and enclosures.
 

Functions and/or Modules

module enclosure_stand_rectangle (size, offset=0, brace=1/2, count=1, space=0, form=0, mode=0)
 A stand maker for rectangular project boxes, housings, and enclosures. More...
 

Usage Details

Stand maker for rectangular prism enclosures.

Requires:
include <omdl-base.scad>;
include <parts/3d/enclosure/enclosure_stand_rectangle.scad>;

Function and/or Module Documentation

◆ enclosure_stand_rectangle()

module enclosure_stand_rectangle ( size  ,
offset  = 0,
brace  = 1/2,
count  = 1,
space  = 0,
form  = 0,
mode  = 0 
)

A stand maker for rectangular project boxes, housings, and enclosures.

Parameters
size<decimal-list-3 | decimal> dimension(s); a list [w, d, h], the width, depth, and height, or a single decimal for width.
offset<decimal> the case seat vertical offset.
brace<decimal> the stand brace member percentage of (seat + offset).
count<integer> the number of enclosures.
space<decimal> the additional separation space between multiple enclosures.
form<integer> the stand form {0 : 7}. Form 6 and 7 can be used as a top brace, or stacking stop brace, for a multi-enclosure stand.
mode<integer> the size specification mode {0: size of case, 1: size of stand}.

Construct a stand for a rectangular prism enclosure. A multi-enclosure stand can be constructed using the count parameter. The size can refer to the enclosure size or the stand size as controlled by the mode parameter. The form = 6 is useful for creating top braces for multi-enclosure stands.

Muilti-enclosure example script

include <omdl-base.scad>;
include <parts/3d/enclosure/enclosure_stand_rectangle.scad>;
rotate([90, 0, 0])
{
e = [35, 125, 125]; w = first(e);
c = 3; o = 8 + 3/4; s = 2 + 17/32;
translate([0, 0, -w/2 + w])
translate([0, 0, -w/2 - w])
translate([0, third(e)+o*2, -w/2])
mirror([0, 1, 0])
enclosure_stand_rectangle( size=w, count=c, form=6 );
%for (x = [-1, 0, +1])
translate([(w+s*2)*x, second(e)/2+o, 0])
cube(e, center=true);
}
// end_include
function third(v)
Return the third element of an iterable value.
function count(mv, v, s=true, i)
Count all occurrences of a match value in an iterable value.
function second(v)
Return the second element of an iterable value.
function first(v)
Return the first element of an iterable value.
module enclosure_stand_rectangle(size, offset=0, brace=1/2, count=1, space=0, form=0, mode=0)
A stand maker for rectangular project boxes, housings, and enclosures.

Muilti-enclosure example diagram
rightfrontdiag
expand rightexpand frontexpand diag

Definition at line 344 of file enclosure_stand_rectangle.scad.

+ Here is the call graph for this function: