SGBAUHAUSchairscratch
SGBAUHAUSchairscratch
This algorithm is designed to create a scratch protector for a specific Bauhaus style chair. It is a parametric design function that utilizes several geometric operations to achieve the desired shape.
The function does not take any direct input parameters from the user. Instead, it uses predefined values and functions to generate the geometry.
D
as 25.4 mm.w
to 2.4 mm.slfit('t')
to obtain a value slt
, which is used later in the algorithm.CPLA
using the function CPLofPL
with a square defined by the dimensions [D D/2+w/2]*1.41+2*w
.CPLB
using PLsquare([D D]+slt)
.CPLB
relative to CPLA
using CPLtransrelCPL
with a rotation of -38 degrees (converted to radians) and align it to the bottom with an offset of -w
.CPLB
from CPLA
using CPLsubtract
.SG
from the modified CPLA
with a height of 40 mm using SGofCPLz
.CPLA
and CPLB
using dbplot
with the 'cont' option.SG
to an STL file using SGwriteMultipleSTL
.