by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 4.1, Creation date: 2017-08-16, Last change: 2025-09-14
SGN=SGchamfer(SG,[ph,ed,r,stype,posit,shape,holeph,ed,r,stype,posit,shape,hole])
SG: | Solid Geometry with just two different z values | |
ph: | edge/phase size default is 0.3; [r z], [r zs ze] is also valid | |
ed: | curved edges; default is true | |
r: | radius for radial edges; default is ph*1.5 | |
stype: | default is 'angle'; see SGof2CPLzheurist | |
posit: | 'both', 'start', 'end' or calculated from ph | |
shape: | PL or 'line' (default), 'circ', see PLchamfer for all values | |
holeph: | "norm", "outw", "hole", see CPLgrow for all values |
SGN: | Solid with chamfered edges |
SGchamfer(SGsample(2))
SGchamfer(SGofCPLz(PLcircleoval(10,'',20,5),10))
SGchamfer(SGofCPLz(PLstar(10),10),0.3,'')
SGchamfer(SGofCPLz(PLstar(10),10),0.3,'',2)
SGchamfer(SGofCPLz(PLstar(10),10),0.3,'',-0.5)
SGchamfer(SGofCPLz(PLstar(10),10),-1)
SGchamfer(SGlinkage(5,30,10),0.3)
SGchamfer(SGsample(10),-2,false,0)
SGchamfer(SGsample(10),-2,true,0)
SGchamfer(SGsample(10),-2,true,0,'center')
A=SGchamfer(SGsample(2)); SGfigure; view(-30,30); h=SGplot(A); setplotlight(h,'r',0.9); camlightTL