SGseparatebyT
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 4.1, Creation date: 2017-08-20, Last change: 2025-09-14
separates a solid into surfaces that are clearly below or above of a xy-plane
Description
In contrast to SGcutT, when two solids are separated by a plane, this function SGseparatebyT raytraces the ez vector of T to identify solids that are infront or behind the T coordinate system. It separates the surfaces into "below", "above" or "undefined".
The solids of SGcutT would be considered as separated solids too.
See Also: SGsurfaces
, SGcutT
, SGcutTcrossblade
, SGcutTcylindricblade
, SGseparatebyPez
Example Illustration
Syntax
[SGX,SGA,SGB,SGC]=SGseparatebyT(SG,T)
Input Parameter
SG: | | Solid Geoemtry |
T: | | Separating frame/ plane |
Output Parameter
SGX: | | Surface that enclosed T (magenta); uncut |
SGA: | | Surfaces clearly ABOVE T (red) |
SGB: | | Surfaces clearly BELOW T (green) |
SGC: | | Surfaces that below and above of T (white) |
Examples
A=SGsample(5); T=TofP([0 0 3]); B=SGbladeofCVL(CVLofSGT(A,T),2,2);
A=SGboolTL(A,'-',B); SGseparatebyT(A,T)
A=SGsample(5); T=TofP([0 0 3]); [A,B]=SGcutT(A,T); SGfigure; SGplot(A,'r'); SGplot(B,'g');
SGseparatebyT({A,B},T)
SGseparatebyT(SGsample(5),T)
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
Last html export of this page out of FM database by TL: 2025-09-21