isonVLFLedge

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

returns the triangles a vertex is on edge

Description

SGintersectFacetPoints returns a vertex list of crossing points of two surfaces. Nevertheless in case of numerical problems when a vertex is on a a facet edge, it is not found on the corresponding negative edge of the neighbor facet. Therefor this function just makes a cross check for all vertices and all points
NN cols; [vi fi ei ti]
vi = checked vertex index of PL
fi = facets of FL that contains PL(vi,:)
ei = edge index 1..3 of fi
ti = value between 0 and 1 end point
if ti<0 or ti>1, the point is not on the edge

See Also: SGintersectFacetPoints , VLFLinsertFacetPoints

Example Illustration

 missing image of isonVLFLedge(VL,FL,PL)

Syntax

NN=isonVLFLedge(VL,FL,PL)

Input Parameter

VL: Vertex list of solid
FL: Face list of solid
PL: Point to check or Point List

Output Parameter

NN: Result [n x 4]

Examples


SGsample(26); A=ans, isonVLFLedge(A.VL,A.FL,[0 -10 5])
SGsample(26); A=ans, isonVLFLedge(A.VL,A.FL,[0 -10 5;10 10 -5])
SGsample(26); A=ans, isonVLFLedge(A.VL,A.FL,[0 -10 5;20 10 -5]); NN=ans
unique(NN(NN(:,4)>=0&NN(:,4)<=1,1:2),'rows')




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