TofSG
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 3.1, Creation date: 2016-11-27, Last change: 2025-09-14
sets a HT matrix relativ to nested solid
Description
Since 2022-05-01 there is a difference between TofBB and TofSG!
Since 2022-05-01 command ssuch as under change the ez direction!!! Use '2021' if the SGlib
Nested solid geometries are allowed
rel such as 'incenter','center', 'ontop','up','top', 'under','down','bottom', left, 'front','infront', 'front','infront', 'behind','back', 'rotx', 'roty', 'rotz', 'zmax', 'zmin', 'facenorm'
SG-Lib 4.7 supports cells of solids
The former function is now called TofSG2021;
See Also: TofDPhi
, TofDPhiH
, TofPCVL
, TofR
, TofSGML
, TofSGMLez
, TofVL
, TofVLUL
, TofVLULez
, TofBB
, TofcrossedSG
Example Illustration
Syntax
T=TofSG(SG,[rel])
Input Parameter
SG: | | Solid Geoemtry |
rel: | | relations or ez-vector |
Output Parameter
Examples
TofSG(SGsample(3),'infront','5.1') % Old style including SG-Lib 5.1 == ez always up
TofSG(SGsample(3),'infront') % New style starting in SG-Lib 5.2 == ez always out
TofSG(SGsample(3),'infront','face',[0 -1 1]) % finds also face normals
TofSG(SGsample(3),[0 -1 1]) % New since 2022-05-01
TofSG(SGsample(3),[0 -1 1]) % New since 2022-05-01
Copyright 2016-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