by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 5.1, Creation date: 2021-03-14, Last change: 2025-09-15
[SGN,T,TN]=SGcutTextrudeT([SG,T,Td,olap,type,unite])
SG: | Solid Geometry | |
T: | Cutting Frame | |
Td: | Straight distance in z or Relative link | |
olap: | overlap of new and old parts | |
type: | straight, rad, rmax,tan; default is straight | |
unite: | if true and possible; function tries to combine the three elements again to one |
SGN: | Result if there is only one solid; unite=true | |
T: | Transformation matrix of click, Global Start Frame | |
TN: | Global End Frame |
load Yannick_robot.mat % Or Use loadweb
SGcutTextrudeT(YKLower,T, TofPez([50 +90 100],[0 0 -1],pi/3),'','rad'); SGN=ans; view(10,30);
SGcutTextrudeT(YKLower,T, TofPez([50 +90 100],[0 0 -1],pi/3),'','tan'); SGN=ans; view(10,30);
SGcutTextrudeT(YKLower,T, TofPez([50 +90 100],[0 0 +1],pi/3),'','rad'); SGN=ans; view(10,30);
SGcutTextrudeT(YKLower,T, TofPez([50 +90 100],[0 0 +1],pi/3),'','tan'); SGN=ans; view(10,30);