Syntax
[SGB,CPLi,CPLo]=SGgearboxhousing(SG,[w,"convex","flooradd","floorsub"])
Input Parameter
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) |
Output Parameter
SGB : | | {Wall, Floor, Lid} |
CPLi : | | Inner axes contour used for the housing |
CPLo : | | Outer box contour used for the housing |
Examples
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))
Copyright 2024-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