SGTsetBF
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 5.1, Creation date: 2022-01-31, Last change: 2025-09-15
set frames 'B' and 'F' at default positions
Description
Should be used only for fast tests. Postion ist not precise +/- 0.01mm.
While SGTsetBFsimple uses the dimensions of the Bounding box, this function SGTsetBF uses feature surfaces to detect the desired orthogonal vectors/ The alpha values is pi/4 for accepting a fitting surface
See Also: SGTset
, SGTsetBFsimple
Example Illustration
Syntax
[SGN,T]=SGTsetBF(SG,[varargin,"new"])
Input Parameter
SG: | | Solid Geometry without Frames Frames 'B' and 'F' |
varargin: | | List of Frames to add; default is varargin={'B',[0 0 -1],'F',[0 0 1]}; |
"new": | | |
"new": | | |
Output Parameter
SGN: | | Solid with Frames 'B' and 'F' |
T: | | T matrix |
Examples
SGTsetBF(SGtransR(SGsample(4),rot(pi/10,pi/10,0),[17 23 55]))
SGTsetBF(SGTremove(SGsample(5),'all'))
SGTsetBF(SGTremove(SGsample(16),'all'))
SGTsetBF(SGTremove(SGsample(52),'all'))
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
Last html export of this page out of FM database by TL: 2025-09-21