SGmedalsframe

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Parametric Design
Introduced first in SolidGeometry 5.3, Creation date: 2023-09-22, Last change: 2025-08-26

creates a plate to present 60mm medals in cmobination with a book wedge



See Also: SGbookwedge

Example Illustration

 missing image of SGmedalsframe

Syntax

SGmedalsframe




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 plate for presenting 60mm medals, in combination with a book wedge. Below is a detailed explanation of the algorithm and its parameters:

Input Parameters

Algorithm Steps

  1. Calculate the slot clearance using the function slfit('c'), which returns a clearance value slc.
  2. Create a circular plate with a radius of 60/2 + slc and a height of 4 using SGofCPLz(PLcircle(60/2+slc),4). This is stored in variable A.
  3. Generate a pattern of the circular plate A in a 3x3 grid using SGcopypatternXYZ(A,[3 3 1],false), and store it in SG.
  4. Define a distance dist of 3 and a 2D array XY with values [200, 200].
  5. Pack the pattern SG into a bounding box defined by [XY 200] with a distance of dist using SGpacking(SG,[XY 200],dist), and store the result in SGN.
  6. Calculate the convex hull of the packed structure SGN using CPLofSGhull(SGN), and store it in CPL0.
  7. Generate a convex hull from CPL0 using CPLconvexhull(CPL0), and store it in CPLA.
  8. Create a buffer around CPLA with a distance of dist using CPLbuffer(CPLA,dist), and store it in CPLB.
  9. Adjust CPLB to have radial edges using PLradialEdges(PLsquare(XY),dist).
  10. Create a 3D structure from CPLB with a height of 1 using SGofCPLz(CPLB,1), and store it in SGA.
  11. Create another 3D structure by subtracting CPL0 from CPLB with a height of 5 using SGofCPLz(CPLsubtract(CPLB,CPL0,'center'),5), and store it in SGB.
  12. Concatenate SGA and SGB with an offset of -0.1 using SGconcat(SGA,SGB,'ontop',-0.1), and store the result in SGC.
  13. Visualize the final structure SGC using SGfigure(-30,30) and SGplotalpha(SGC).
  14. Export the final structure SGC to an STL file named 'SGmedalsframe' using SGwriteSTL(SGC,'SGmedalsframe').
Algorithm explaination created using ChatGPT on 2025-08-18 23:13. (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