SGTframeselect

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 5.0, Creation date: 2020-12-06, Last change: 2025-09-15

Fnct to select frame set



See Also: SGTframeplot

Example Illustration

 missing image of SGTframeselect(SG,Fset)

Syntax

Fi=SGTframeselect(SG,Fset)

Input Parameter

SG: Solid Geometry
Fset: Starting Letter or set of starting letter

Output Parameter

Fi: Logical index of T

Examples


SGTframeselect(SGbox,'Y')
SGTframeselect(SGbox,'X')
SGTframeselect(SGbox,{'Y','X'})




Copyright 2020-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, SGTframeselect, is designed to select frames from a solid geometry object based on specified starting letters. It is part of the SolidGeometry library and is used for kinematics and frames.

Input Parameters

Output Results

Algorithm Steps

  1. Determine if the function should operate in backward-compatible mode by calling getfuncparams with varargin.
  2. Check if Fset is a character:
    • If backw is true, use ismemberincell to find frames in SG.Tname that match Fset.
    • If backw is false, use startsWith to find frames in SG.Tname that start with Fset.
  3. If Fset is a cell array, use ismemberincell to find frames in SG.Tname that match any of the starting letters in Fset.
  4. If Fset is neither a character nor a cell array, throw an error indicating that the input must be starting characters or a cell list of correct frames.
  5. If no output arguments are specified, display the selected frames and plot them:
    • Print the selected frame names using dbprintf.
    • Create a figure with SGfigure and plot the solid geometry with SGplotalpha.
    • For each selected frame, plot the frame using tplot and adjust the font size of the text objects.
Algorithm explaination created using ChatGPT on 2025-08-19 07:53. (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