SGseparatebyPez

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 5.0, Creation date: 2020-09-06, Last change: 2025-09-14

searches infront and behind a ez vector for surfaces

Description

This function is useful to classify solids as infront or behind a cutting plane or cutting blades
In contrast to SGseparatebyT, this function is beam touched surface based
SGTframerot


See Also: SGTframerot , SGsurfaces , SGcutT , SGcutTcrossblade , SGcutTcylindricblade , SGseparatebyT

Example Illustration

 missing image of SGseparatebyPez(SGorg,p,ez,FN)

Syntax

SGout=SGseparatebyPez(SGorg,p,[ez,FN])

Input Parameter

SGorg: Original Solid Geometry
p: center point
ez: ez beam to find surface
FN: optional frame name; default is 'C'

Output Parameter

SGout: {behind-ez surface, infront-ez surface, untouched surface}

Examples


[A,B]=SGcutT(SGbox,eye(4),'',0.1); % distance is required!
SGseparatebyPez(SGofSG({A,B}),[0 0 0],[0 0 1])




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

Last html export of this page out of FM database by TL: 2025-09-21