SGconvexHullsliced

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 5.4, Creation date: 2024-08-21, Last change: 2025-09-15

creates a high resultion fittin convex contour in xy and a sliced on in z

Description

Slow function that requires appropriate parameters!
This is the 3rd try (and 1st working version) to create such a function
SGofCVLslices introduced 2017-MAI-26
SGconvexsolidofSG introduced in 2020-AUG-15
SGwatertightofSG introduced in 2020-AUG-28 (is not a convec shape based on voxels)
SGconvexHullsliced tries to finish 2024-AUG-21
In fact the function CPLconvexhulloutline (2021) seems to make it possible


See Also: SGwatertightofSG , SGreduceVLFL , CPLconvexhulloutline

Example Illustration

 missing image of SGconvexHullsliced(SG,ra,Dcl,

Syntax

[SGN,FLW,FLA,FLB]=SGconvexHullsliced(SG,[ra,Dcl,"debug"])

Input Parameter

SG: Solid Geometry
ra: z resolution and auxiliary point distance; default is [s/50 1]
Dcl: Diameter of small holes in the contour to be closed; default is 3 for M3;
"debug": if used the creation process is shown

Output Parameter

SGN: Convex solid [FL=[FLA;FLB;FLW]
FLW: facet list of wall
FLA: facet list of floor
FLB: facet list of cover

Examples


SGA=SGreadSTL('/Volumes/LUETH-WIN/RAAMBO/Raambo stls/Platte 1/2024-02-22 Kappe Motor 5.stl','','axisalign','rotx',pi,'transP',[-25 14.5 0]);
SGconvexHullsliced(SGA,[1 1],5);
SGconvexHullsliced(SGsample(5))
SGconvexHullsliced(SGsample(22))




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