SGof2CPLtransition4FDM

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 5.2, Creation date: 2022-04-23, Last change: 2025-09-15

creates transition solid to avoid support structures for FDM printer



See Also: SGof2CPLzheurist

Example Illustration

 missing image of SGof2CPLtransition4FDM(CPLB0,CPLi,rmin,alpha)

Syntax

[EE,hE]=SGof2CPLtransition4FDM(CPLB0,CPLi,[rmin,alpha])

Input Parameter

CPLB0: Lower Contour
CPLi: Higher Contour
rmin: optional minimal angle
alpha: optional transition angle; default is 50/180*pi

Output Parameter

EE: Transition solid
hE: height of EE in z

Examples



SGof2CPLtransition4FDM(CPLsubtract(PLstar(10),PLcircle(3)),CPLsubtract(PLstar(10),PLcircle(2)))




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

Algorithm (Workflow)

This function, SGof2CPLtransition4FDM, is designed to create a transition solid between two contours to avoid support structures in FDM (Fused Deposition Modeling) 3D printing. Below is a detailed explanation of the algorithm and its parameters.

Input Parameters

Output Results

Algorithm Steps

  1. Retrieve the optional parameters rmin and alpha using the getfuncparams function. If rmin is not provided, it is calculated using the PLcircleofPL function on CPLi.
  2. Set M to rmin.
  3. Calculate the height hE of the transition solid using the formula: hE = tan(alpha) * M / 2.
  4. Create the transition solid EE using the SGof2CPLzheurist function, which takes buffered versions of CPLB0 and CPLi and the calculated height hE.
  5. If no output arguments are specified, plot the contours and the transition solid using the SGfigure, CVLplots, and SGplotalpha functions.

Example Usage

The function can be used as follows:

SGof2CPLtransition4FDM(CPLsubtract(PLstar(10),PLcircle(3)), CPLsubtract(PLstar(10),PLcircle(2)))

This example creates a transition solid between two star-shaped contours with circular subtractions.

Algorithm explaination created using ChatGPT on 2025-08-19 06:44. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21