SGcapontop
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Parametric Design
Introduced first in SolidGeometry 4.7, Creation date: 2019-07-17, Last change: 2025-09-14
returns a solid that covers the geometry from top to a specified length
Description
This function is a good example for automated design in comparision with parametric design. It is used to create positive connection to solids from above or in the direction of a z-axis of a Frame. Those parts can be connected by SGTconnect to create couplings between two solids by means of a positive connection.
Connection type under development are:
'Simple' - For a positive connection of the outer shape
'Plug' - For a positive connection of the innver shape
'Full' - For a positive connection of outer and inner shape ('default')
There is a simpler version based on projection also: "SGcapontopprojection"
See Also: SGTconnect
, SGtorquefuse
, SGcapontopprojection
Example Illustration
Syntax
[SGC,SG,CPLh,CPL]=SGcapontop([SG,b,T,ctyp,cpos,offs])
Input Parameter
SG: | | Solid Geometry |
b: | | [z and w] depth and wall thickness |
T: | | Optional frame relative to SG (Char) to specify upwards |
ctyp: | | cover type; default is 'default' Try 'plug' or 'full', or 'simple' |
cpos: | | reference for coverage 'none', 'frame' , 'surface' |
offs: | | used for plug to make sure that the plug looks outside |
Output Parameter
SGC: | | Solid Geometry that covers SG from the top with Frames 'F' and 'B' |
SG: | | Solid Geometry with modified Frame 'F' to adjust to Cap |
CPLh: | | Convex hull contour |
CPL: | | |
Examples
SGservosample(4); SG=ans;
SGcapontop(SG,[3 1.5]
SGmotorN20('encoder'); SG=ans;
Copyright 2019-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