by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Modeling function
Introduced first in SolidGeometry 5.0, Creation date: 2021-01-10, Last change: 2025-09-15
SGiPadFlip2stand([L])
L: | Length up to 320 mm; default is 100mm |
SGiPadFlip2stand(320)
This function, SGiPadFlip2stand, is designed to create a stand for inserting an Apple iPad into the opening of a Samsung Flip2 55 Stand. The function is part of the SolidGeometry library and was introduced in version 5.0.
L using getfuncparams, with a default of 100 mm.w (width) = 3 mm, H1 = 40 mm, H2 = 12 mm, and ol (offset length) = 0.1 mm.CPLA using PLsquare with dimensions [L, 61 + 2*ol].CPLA using CPLsubtract, aligning it at the bottom with an offset of -5 mm.slfit('c') from CPLA, aligning it at the top with an offset of -21 + 3 + slfit('c') - ol.CPLA with a honeycomb pattern using CPLfillHoneycomb with parameters 5 and 3.5*5, then extrude it to create shape A with width w.B using CPLradialEdges on a square with dimensions [L, H1 + H2 + w], with a radial edge of 2*w.CPLB with a honeycomb pattern using CPLfillHoneycomb with parameters 3 and 3.5*3, then extrude it to create shape B with width w along the y-axis.B in front of A using SGtransrelSG, centering it and aligning the top with an offset of +H2.C of B and position it behind A using SGtransrelSG, centering it and aligning the top with an offset of +H2.A, B, and C into a single shape SG using SGconcat.SGplotalpha with different colors for visualization.SG to an STL file using SGwriteSTL.