VLedgeNormal
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 4.0, Creation date: 2017-07-09, Last change: 2025-09-14
returs normal and plane vector for free boundary contour
Description
This function is more complex to understand that it seems on the first view: Three succeeding points [last current next] define a plane if not in a line. This plane has a normal vector ez. The tangential vector ex= is [next - last] and the plane vector is ey=cross(ez,ex)
2018-07-23 Does also support straight lines now.
See Also: CVLedgecenter
, CVLedgeNormal
, VLFLfaceNormal
, VLFLofCVLdelaunay2D
, VLFLofCVLdelaunay3D
, edgeNormal
, CPLedgeNormal
, Rofez
Example Illustration
Syntax
[NL,OL]=VLedgeNormal(VL,[ez,Amin])
Input Parameter
VL: | | Vertex list of succeeding vertices |
ez: | | optional first normal vector; default is normal of facet [1 2 3] |
Amin: | | Minimal area to ignore; default is 1e-3; 1-7 makes sense also |
Output Parameter
NL: | | Normal Vector List (red) |
OL: | | Orthogonal Plane Directed Vector list (blue) |
Examples
VL=VLsample(12); VL=[VL;VL(1:2,:)]; VLedgeNormal(VL)
VLedgeNormal(PLhelix(10,10,4*pi))
VLedgeNormal(VLsample(9))
VLedgeNormal(VLsample(2))
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