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

 missing image of SGbarcelonaspacer

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

Algorithm Steps

  1. Retrieve the input parameters using getfuncparams function. Default values are used if parameters are not provided.
  2. Calculate the diameter for the leg as d1 = dwdh(1) + 2 * sl, where sl is a constant set to 1.
  3. Extract wall thickness w, base length dd, and height hh from dwdh.
  4. Create a profile list PL using PLcircle and the calculated diameter d1.
  5. Generate a composite profile list CPL using CPLrack4PL with the profile list PL, wall thickness w, and style styl.
  6. Subtract the circle profile from CPL using CPLsubtract.
  7. Subtract a buffered version of CPL with negative height -hh from CPL.
  8. Remove straight edges from CPL using CPLremstraightAmin with a minimum length of sqrt(w).
  9. Add radial edges to CPL using CPLradialEdges with wall thickness w.
  10. Create a solid geometry SG from CPL with height hh using SGofCPLz.
  11. 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:

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