layerspacerlength

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 5.1, Creation date: 2022-02-03, Last change: 2025-09-15

returns the levels of the spacer for collision avoidance and shaping

Description

helful to prepare the full link links including spacer for CPLsubtractTLasSG

See Also: CPLsubtractTLasSG

Example Illustration

 missing image of layerspacerlength(se,lay,R12,H)

Syntax

[ll,d,s]=layerspacerlength([se,lay,R12,H])

Input Parameter

se: [startindex-in-layers endindex-in-layers]
lay: [layer indices] default is [0 2 1 1] for ground, effector, crank swing]
R12: just for visualization
H: just for visualization

Output Parameter

ll: levels of spacer
d: length of spacer
s: direction of spacer

Examples


layerspacerlength([1 3],[0 4 6 8]) % layers and length of a spacer between layer 0 and layer 6
layerspacerlength([1 3],[0 4 1 8]) % layers and length of a spacer between layer 0 and layer 1
layerspacerlength([1 3],[0 4 0 8]) % layers and length of a spacer between layer 0 and layer 0
layerspacerlength([1 3],[0 4 -6 8]) % layers and length of a spacer between layer 0 and layer -6




Copyright 2022-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