SGcutTinsertpins

by Tim Lueth & Simon Schiele, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 4.8, Creation date: 2019-11-21, Last change: 2025-09-14

separates a solid similar to SGcutT but inserts connection points

Description

The first function for this purpose was written by Simon Schiele and Yannick Krieger mentioned his solution to Tim Lueth. Fittings were introduce in Aug-2020.
This function has been modified in 2024-02-14 to support fitting.

See Also: SGcutT , CPLofSGcutT

Example Illustration

 missing image of SGcutTinsertpins(SG,T,rh,sl)

Syntax

[SGB,SGA,SGP,CPL,PL,T]=SGcutTinsertpins([SG,T,rh,sl])

Input Parameter

SG: Solid Geometry
T: Cutting frame; Z-Achsis spearates
rh: radius and height of pins
sl: default is slfit('c'); to be compatible with 5.3 or ealier (Oct 2023), use 0 here

Output Parameter

SGB: Solid with Pins
SGA: Solid with Holes
SGP: Just the Pins
CPL: cutting Contour
PL: Point list for Pins
T: HT matrix to transform PL to VL

Examples


SGboolh('-',SGbox([30,20,10]),SGsphere(12,'','','',8,4)); SG=ans;
SGcutTinsertpins(SGboolh('-',SGbox([30,20,10]),SGsphere(12,'','','',8,4)))
SGcutTinsertpins(SG,TofR(rot(1e-2,1e-2,1e-2),[0 0 0]),[-4])
SGcutTinsertpins(SGbox([4 4 10]),TofR(rot(1e-2,1e-2,1e-2),[0 0 0]),[-1],slfit('c')); cura




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