Syntax
SG=SGslidingcoverofCPLz(CPL,[w,T,op])
Input Parameter
CPL : | | Contour of a convex hull |
w : | | [w h e sl] wall thickness of the walls ; height of the plate |
T : | | Frame to align the cover; not supported yet |
op : | | [x y] for an opening slot at y-min |
Output Parameter
SG : | | cellPlate consisting of at least three parts |
Examples
SGslidingcoverofCPLz (PLsquare(10,20),[2 4]); % Contour with wall thickness 2 and desired height 4
%% Create a housing for a motor with an sliding cover
SGmotorSolExpert; M=ans; [C,~,CPL]=SGcapontop(M,[inf 2],'','simple'); SGplotalpha(C,'w',0.2);
SGslidingcoverofCPLz(CPL,[2 4]); P=ans; % Create a Slidung Cover
SGtransrelSG(P,C,'under'); P=ans; % Position Sliding Cover
SGanalyzeGroupParts({P,C}); SG=ans; % Fuse Parts
SGunion(SG.SG); SGanalyzeGroupParts(ans) % Show the new solids
SGslidingcoverofCPLz(CPLradialEdges(CPLofPL(PLsquare(20))),[1 4 2 ],'',[9 1]); % with opening
Copyright 2020-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