SGprinterstand
SGprinterstand
This function, SGprinterstand
, is designed to create a stand for a printer, specifically a HP laser printer, using parametric design principles. The function is part of the SolidGeometry library and was introduced in version 5.4.
varargin
: A variable-length input argument list that allows the function to accept a flexible number of input parameters. The function checks for the presence of the string 'STL' within these parameters to determine if an STL file should be generated.getfuncparamStr
function. This function returns a boolean isSTL
indicating whether 'STL' is present in the input arguments.w
to 10 mm.H
to [90, 90, 90] mm and adjust them by subtracting the width w
.CPLA
using the CPLrack4PL
function, which takes a square base of size H(1:2)
and a spoke width of w/2
.CPLB
using the CPLrackPLdelaunay
function, which also takes a square base of size H(1:2)
and a spoke width of w/2
, with the true
parameter indicating some additional configuration.CPLC
using the CPLunion
function.CPLC
into a 3D shape SG
using the SGofCPLz
function, with a height of H(3) + w
.nargout == 0
), plot the 3D shape using SGfigure
and SGplotalpha
functions.SGwriteMultipleSTL
function.