SGboxradial

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Parametric Design
Introduced first in SolidGeometry 5.2, Creation date: 2022-06-07, Last change: 2025-09-15

similar to SGbox but with radial edges in 2.5 D



See Also: SGbox , SGbar , SGseedcube

Example Illustration

 missing image of SGboxradial(siz,rrr,ddd)

Syntax

SG=SGboxradial([siz,rrr,ddd])

Input Parameter

siz: [x y z] size
rrr: radius for radial edges;de fault is 2
ddd: optional extrusion direction; default is 'z'

Output Parameter

SG:




Copyright 2022-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 a MATLAB function named SGboxradial that creates a 3D geometric shape with radial edges. It is part of the SolidGeometry library.

Input Parameters

Output

Algorithm Steps

  1. Retrieve the input parameters siz, rrr, and ddd using the getfuncparams function, with default values if not provided.
  2. Use a switch statement to determine the extrusion direction based on ddd:
  3. Translate the shape to the origin using SGtrans0.
  4. Create a basic box shape using SGbox with the given size siz.
  5. Copy the radial shape onto the basic box using SGTcopy.
  6. If no output is requested, plot the shape using SGfigure and SGTplotalpha.
Algorithm explaination created using ChatGPT on 2025-08-19 01:07. (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