SGbarcelonaspacer
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Parametric Design
Introduced first in SolidGeometry 5.3, Creation date: 2023-05-15, Last change: 2025-08-19
Solid protector for Barcelona lounger by Mies van der Rohe
Description
protect the touch of the barcelona bed to a wall
Completed CAD designs
See Also: SGfurniturespacer
Example Illustration
Syntax
SGbarcelonaspacer
Examples
SGbarcelonaspacer([32 3 120 15],'min') % Mies van der Rohe Barcelona bed
SGbarcelonaspacer([32 3 60 25],'bar') % Le Corbusier Sofa
SGbarcelonaspacer([32 3 60 25],'spoke') % Le Corbusier Sofa
SGbarcelonaspacer([32 3 60 25],'circ') % Le Corbusier Sofa
SGbarcelonaspacer([32 3 60 25],'box') % Le Corbusier Sofa
Copyright 2023-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Algorithm (Workflow)
This algorithm is designed to create a solid protector for the Barcelona lounger by Mies van der Rohe. It is a parametric design function that generates a spacer to protect the lounger from touching a wall.
Input Parameters
- dwdh: A vector containing four elements [d, w, dd, hh].
- d: Diameter for the leg, default is 32 mm.
- w: Wall thickness, default is 3 mm.
- dd: Base length, default is 120 mm.
- hh: Height, default is 15 mm.
- styl: A string indicating the style of the spacer. Options are 'min', 'spoke', 'bar', 'circ', 'box'. Default is 'min'.
Algorithm Steps
- Retrieve the input parameters using
getfuncparams function. Default values are used if parameters are not provided.
- Calculate the diameter for the leg as
d1 = dwdh(1) + 2 * sl, where sl is a constant set to 1.
- Extract wall thickness
w, base length dd, and height hh from dwdh.
- Create a profile list
PL using PLcircle and the calculated diameter d1.
- Generate a composite profile list
CPL using CPLrack4PL with the profile list PL, wall thickness w, and style styl.
- Subtract the circle profile from
CPL using CPLsubtract.
- Subtract a buffered version of
CPL with negative height -hh from CPL.
- Remove straight edges from
CPL using CPLremstraightAmin with a minimum length of sqrt(w).
- Add radial edges to
CPL using CPLradialEdges with wall thickness w.
- Create a solid geometry
SG from CPL with height hh using SGofCPLz.
- If no output is requested, plot the geometry using
SGfigure, CPSplot, and SGplotalpha. Save the geometry as an STL file using SGwriteSTL.
Switch Conditions
The algorithm includes a switch condition based on the styl parameter:
- 'min': Minimal style, default option.
- 'spoke': Style with spokes.
- 'bar': Style with bars.
- 'circ': Circular style.
- 'box': Box style.
Algorithm explaination created using ChatGPT on 2025-08-19 07:51. (Please note: No guarantee for the correctness of this explanation)
Last html export of this page out of FM database by TL: 2025-09-21