VLmindist

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 4.1, Creation date: 2017-08-17, Last change: 2025-09-14

returns the minimal distance larger than zero

Description

After reading in a STL file, there is a need to check the minmal distances between the vertices.
If the minimal distance is smaller than the minimal value of Matlab, eps, accuracy errors will occur.

See Also: , eps2 , VLmindxyz , SGshortopti , VLcheckvertexaccuracy

Example Illustration

 missing image of VLmindist(VL,epsr)

Syntax

[dmm,dmin]=VLmindist(VL,[epsr])

Input Parameter

VL: vector list
epsr: optional rounding before; default is 0, i.e. no rounding

Output Parameter

dmm: absolute minimal distance
dmin: minmal distance per column

Examples


VLmindist(rand(1000000,1)) % linear minimal random distance
VLmindist(rand(1000000,2)) % quadratic minimal random distance
VLmindist(rand(1000000,3)) % cubic minimal random distance

loadweb JACO_robot.mat
VLmindist(JC61.VL)




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