by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PL/Point Lists
Introduced first in SolidGeometry 5.0, Creation date: 2021-01-02, Last change: 2025-09-15
See Also: PLchamfer
, SGofCPLz
, SGofCPLextrude
PL=PLchamfer2side([z,x,sh,d])
z: | z or [z_left z-right] | |
x: | x or [x_left x-right] | |
sh: | shape or {shape_left, shape_right} | |
d: | delta or [delta_left delta-right] |
PL: | Point list for SGofCPLextrude |
PLchamfer2side(10,10,{'mattheck','circ'},[0 6])
PLchamfer2side(10,10,{'mattheck','line'},[0 6])
PLchamfer2side(10,10,{'mattheck','circ2'},[0 6])
PLchamfer2side(10,10,{'mattheck','circ3'},[0 6])
PLchamfer2side(10,10,{'circ3','mattheck'},[0 6])
This function, PLchamfer2side, is designed to create a point list for a two-sided chamfered polygon. It is part of the SolidGeometry library and is used for generating closed polygon lists.
z, this can be a single value or a two-element vector [x_left, x_right]. A single value is duplicated.getfuncparams to ensure they are in the correct format (vectors or cell arrays).PLchamfer function twice to generate point lists for the left and right sides using the respective parameters z(1), x(1), sh{1} and z(2), x(2), sh{2}.PL1 and PL2. If necessary, flip them using flipud to ensure a consistent order.PL by adjusting the positions with the delta values d(1) and d(2).PL while maintaining the order using unique.SGfigure and CPLplot.The function returns a point list PL that can be used for further processing in the SGofCPLextrude function.