SGdrawingtemplateofCPL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Modeling function
Introduced first in SolidGeometry 3.8, Creation date: 2017-04-23, Last change: 2025-09-14

Creates a 3D printable drawing template - slow but helpful

Description

When creating templates from a line drawing, a contour is moved outwards and inwards: CPLgrow. This can lead to self-overlaps of contours. Accordingly, the out-contour of the grown contour and the inner contour of the fringed contour must be used: CPLsortinout. The function is: CPLtemplateofCPL. Insulated contours are then connected: CPLunitesorted. Overlapping contours are preserved by auxiliary points.

See Also: CPLtemplateofCPL

Example Illustration

 missing image of SGdrawingtemplateofCPL(CPLU,pen,unt,wall,height,dmin,lnk,top)

Syntax

SG=SGdrawingtemplateofCPL(CPLU,[pen,unt,wall,height,dmin,lnk,top])

Input Parameter

CPLU: Linienzeichnung
pen: pen diameter
unt: if true; crossings are united; default is false
wall: wall thickness; default is 1.5mm
height: height of template; default is 1.5mm
dmin: diameter to support crossing points
lnk: if true, solids are connected; default is false
top: upper pen diameter; default is width;

Output Parameter

SG: SG of a drawing template

Examples


A=[0 0; 10 0;NaN NaN;5 -5; 5 +5]; SGdrawingtemplateofCPL(A,1,false);
A=[0 0; 10 0;NaN NaN;5 -5; 5 +5]; SGdrawingtemplateofCPL(A,1,true);
SGdrawingtemplateofCPL([0 0; 10 0])
SGdrawingtemplateofCPL(PLgearDIN(1,10))




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