SGnamedset

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 5.4, Creation date: 2024-08-11, Last change: 2025-09-15

creates a textfield to understand the parameters of the solid

Description

This function is used before SGwriteMultipleSTL to make sure that some information at least the variable name in function is known. The function does not allow the use of calculated solids, only solids by variable name


See Also: SGwriteMultipleSTL , SGstampname

Example Illustration

 missing image of SGnamedset(Solids)

Syntax

SGall=SGnamedset([Solids])

Input Parameter

Solids: Solid Geometries as varargin separated by comma

Output Parameter

SGall: SG cell list including stampnames and stampdates

Examples

A=SGbox, B=SGbox

SGall=SGnamedset(A,B,A,B)




Copyright 2024-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 function, SGnamedset, is designed to process solid geometries and ensure that each solid is associated with a variable name. It is primarily used before the function SGwriteMultipleSTL to ensure that the necessary information is available.

Input Parameters

Output Results

Algorithm Steps

  1. Initialize an empty cell array SGall with a size equal to the number of input arguments (nargin).
  2. Get the current date and time as a string using datestr(now) and store it in stampdate.
  3. Initialize a counter k to zero, which will track the number of valid solids processed.
  4. Loop through each input argument:
  5. Trim SGall to include only the valid solids processed (up to index k).
Algorithm explaination created using ChatGPT on 2025-08-19 08:22. (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