VLFLvertexNormal
by Yilun Sun, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 4.2, Creation date: 2018-06-21, Last change: 2025-09-14
returns the vertex normal for the vertices of a solid
Description
This function calculates the vertex normal from the average normal of the surrounding facets weighted by the corresponding angles.
Arrows are drawn only up to 100 vertices
- This function may be can accelerated by triangulating only the facet attached to the vertices (TL)
See Also: vertexNormalbyFN
, PLnorm
, PLELnorm
, PLFLfaceNormal
, VLnorm
, VLFLfaceNormal
, VLedgeNormal
, VLFLfaceAngles
Example Illustration
Syntax
NVL=VLFLvertexNormal(VL,FL,[vi])
Input Parameter
VL: | | Vertex list |
FL: | | Facet list |
vi: | | optional vertex index; default is all |
Output Parameter
NVL: | | Normal Vector List [nf x 3] |
Examples
[VL,FL]=SGsample(4); VLFLvertexNormal(VL,FL);
[VL,FL]=SGsample(5); VLFLvertexNormal(VL,FL);
[VL,FL]=VLFLsample(11); VLFLvertexNormal(VL,FL)
References
- Grit Thuermer and Charles A. Wuethrich (1998): "Computing vertex normals from polygonal facets", Journal of Graphics Tools, Volume 3 Issue 1, Mar 1998, Pages 43-46
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