SGTcopysurfaceframesout
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 5.0, Creation date: 2020-10-17, Last change: 2025-09-15
copies all frames from one solid to another solid if the frames are outward frames
Description
This function is required in addition to SGTcopyinteralframes for SGTcut
See Also: SGTcopy
, SGTcopynames
, SGTcopyinteralframes
, SGTcut
Example Illustration
Syntax
SGN=SGTcopysurfaceframesout(SGA,SGB)
Input Parameter
SGA: | | Solid to copy frames to |
SGB: | | Solid to copy frames from |
Output Parameter
SGN: | | Solid to copy frames to |
Examples
load ADAM_Aframes.mat; SG=ADAM_Aframes
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, SGTcopysurfaceframesout, is designed to copy frames from one solid object to another, specifically when the frames are outward frames. It is part of the SolidGeometry library and is used in conjunction with other functions like SGTcopy and SGTcopyinteralframes.
Input Parameters
- SGA: The solid object to which frames will be copied.
- SGB: The solid object from which frames will be copied.
Output
- SGN: The solid object with copied frames.
Algorithm Steps
- Check if
SGA and SGB are cell arrays. If not, convert them into cell arrays.
- Iterate over each element in
SGA using index i.
- For each element in
SGA, iterate over each element in SGB using index k.
- For each element in
SGB, iterate over each frame T using index l.
- Check if the frame
T is a surface frame using the function SGissurfaceframe.
- If the frame is a surface frame (i.e.,
VIL > 0), copy the frame from SGB to SGA using SGTcopy.
- If no output is requested (
nargout == 0), plot the result using SGfigure and SGTplotalpha.
Algorithm explaination created using ChatGPT on 2025-08-19 01:01. (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