by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Automatic Design
Introduced first in SolidGeometry 5.4, Creation date: 2024-06-07, Last change: 2025-09-15
See Also: SGgearchainwindup
, CPLofSGgears
[SGB,CPLi,CPLo]=SGgearboxhousing(SG,[w,"convex","flooradd","floorsub"])
SG: | Cell array of gears created by SGgearchainwindup etc. | |
w: | [wall floor cover lid] thickness; default is [1.2 1.2 1.2 0.8] | |
"convex": | if used the shape is a convex hull | |
"flooradd": | this contours are added to the floor in addition (freewheel) | |
"floorsub": | this contours are subtracted from the floor in addition (freewheel) |
SGB: | {Wall, Floor, Lid} | |
CPLi: | Inner axes contour used for the housing | |
CPLo: | Outer box contour used for the housing |
SGgearchainwindup([1.2 5 2],[45 9 34 10 20 20 40 40 ],'stack','shaft',PLwrench(6.4,6)); SGC=ans;
SGgearboxhousing(SGC)
SGgearboxhousing(SGC,'convex')
SGgearboxhousing(SGC,[1.2 1 0 0], 'convex')
SGgearboxhousing(SGC,[1.2 1 0 0], 'convex','flooradd',CPLcopypatternPL(PLcircle([10,8])+[30 0],PLsquare(50)),'floorsub',PLcircle(15))
SGgearboxhousing(SGC,[0 1 0 1], 'convex','flooradd',CPLcopypatternPL(PLcircle([5,3])+[30 0],PLsquare(50)),'floorsub',PLcircle(15))