epsofVL

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

returns the minimal points distance in a set of vertices or two groups

Description

The function can also be called using two VL or two SG. The function has quadratic effort. It wil become very slow for large vertex lists.

See Also: , eps2

Example Illustration

 missing image of epsofVL(NVL,n)

Syntax

[e,ea,eb]=epsofVL(NVL,[n])

Input Parameter

NVL: Vertex list with appended split points
n: number to split the vertex list into 2 parts [1:n,:] & [n+1:end,:]

Output Parameter

e: smallest number larger 0 between the points
ea: epsilon within the first group
eb: epsilon within the second group

Examples


A=SGsample(5); SGfigure(A); view(-30,30); epsofVL(A.VL)
A=SGsample(26); SGfigure(A); view(-30,30); epsofVL(A.VL)
A=SGsample(25); SGfigure(A); view(-30,30); epsofVL(A.VL)
A=SGsample(5); SGfigure(A); view(-30,30); [a,b,c]=epsofVL(A.VL,500)
A=SGsample(26); SGfigure(A); view(-30,30); [a,b,c]=epsofVL(A.VL,5)




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