SGcrosssectionadjustment

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Boolean
Introduced first in SolidGeometry 5.5, Creation date: 2025-07-29, Last change: 2025-09-15

A connecting body is designed that transfers and connects two bodies for the opposite cross-sections into each other.


Use carefully: The 'SGcrosssectionadjustment' function has not yet been extensively tested

Description

When using FDM printers, one often wants to avoid overhangs and instead connect two contours with a transition.
Could also be named: SGmerging2SG, SGconnect2SG, SGconnect2SGbyFScrossection

This function demonstrates quite well which spatial transformations, in addition to the function SGof2CPLzheurist, are necessary to connect two spatial contours.[spchk]

See Also: SGof2SGT , SGdesignSupplement2connect2SG

Example Illustration

 missing image of SGcrosssectionadjustment(A,B,ezrel,d)

Syntax

X=SGcrosssectionadjustment([A,B,ezrel,d])

Input Parameter

A: Solid A
B: Solid B
ezrel: ez vector of A - spatial relation; default is [0 0 1]
d: distance between B and A

Output Parameter

X: Connecting Solid

Examples


SGcrosssectionadjustment(SGofCPLz(PLcircle([12 15]), 10), SGDIN13(-10,10,'',PLcircle(15)),'',10) % Typical application
SGcrosssectionadjustment(SGofCPLz(CPLsample(3),10),SGofCPLz(CPLsample(32),[20 25]),'ontop')
SGcrosssectionadjustment(SGofCPLz(CPLsample(3),10),SGofCPLz(CPLsample(32),[40 42]),'ontop')
SGcrosssectionadjustment(SGofCPLz(CPLsample(30),10),SGofCPLz(CPLsample(31),[40 42]),'ontop',10)
SGcrosssectionadjustment(SGofCPLz(CPLsample(3),10),SGofCPLz(CPLsample(31),[40 42]),'ontop',10) % unfavorable but possible
SGcrosssectionadjustment(SGofCPLz(CPLsample(31),[40 42]),SGofCPLz(CPLsample(3),10),'ontop',10) % unfavorable but possible





Copyright 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