SGTBB

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 3.9, Creation date: 2017-06-29, Last change: 2025-09-14

replaces the complex surface geometry by a simplified bounding box

Description

Since SG can be very large structures, the call by value concept of matlab is time consuming. This function replaces the solid geometries by its bounding box geometries relative to the base frame.
in Contrast to SGofBB or BBofSG this function handles in addition the frames that are required for cinematic chains

See Also: SGTchain , SGTcalibchain , iscollofSG

Example Illustration

 missing image of SGTBB(SG)

Syntax

SGbb=SGTBB(SG)

Input Parameter

SG: cell list of solid geometries

Output Parameter

SGbb: cell list of bounding boxes




Copyright 2017-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 simplifies complex surface geometries by replacing them with bounding boxes. It is designed to handle large structures efficiently by using bounding box geometries relative to the base frame. The function is part of the SG-Library and is used in kinematics and frames.

Input Parameters

Output Results

Algorithm Steps

  1. Check if the input SG is a cell. If not, convert it into a cell array.
  2. Initialize SGbb as a copy of SG.
  3. Iterate over each element in SGbb:
  4. If SGbb contains only one element, extract it from the cell array.
  5. If no output is expected (i.e., nargout==0), plot the bounding boxes using SGTplot with a specific view angle.
Algorithm explaination created using ChatGPT on 2025-08-19 00:57. (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