by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Parametric Design
Introduced first in SolidGeometry 5.2, Creation date: 2022-06-09, Last change: 2025-08-19
See Also: SGcompass
, SGboxMacmini
, SGBAUHAUSdeskcylinder
, SGBAUHAUSbox
, SGjuicermachineclip
SG=SGwebcamcover
SG: | Solid Geometry |
This function, SGwebcamcover, is designed to create a 3D model of a webcam cover using Solid Geometry (SG) operations. The function is part of the SG-Library and is used for parametric design.
getfuncparams with a default value of 30. This value is used for new Logitech webcams, while a value of 22 is used for older models.A is created with dimensions [50, 1.2, 30]. This represents the main coverplate of the webcam cover.B is a box with dimensions [5, dpth+1.2+1.5, 1.2], representing the arm that extends backwards.C is a box with dimensions [5, 1.2, 20], representing the arm that extends downwards.B1 is positioned relative to A using SGtransrelSG to align the top, front, and left sides, creating the left arm.B2 is similarly positioned to create the right arm.C1 and C2 are positioned relative to B1 and B2 respectively, aligning the top, back, and right sides.A, B1, B2, C1, C2) into a single SG object using SGconcat.SGwriteSTL. The filename includes the depth value.SGfigure and SGplotalpha.