vertexNormalbyFN

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 2.4, Creation date: 2015-08-21, Last change: 2025-09-14

calculates the vertex normals based on the facet normals

Description

This function is sometimes required to improve the result of MATLAB's vertexNormal function. It is about 40 times slower

See Also:

Example Illustration

 missing image of vertexNormalbyFN(TR3)

Syntax

[NNL,NL]=vertexNormalbyFN(TR3)

Input Parameter

TR3: triangulation

Output Parameter

NNL: Normal vector list
NL: vector sum of the face norms attached to the vertex

Examples


vertexNormalbyFN(SGbox([30,20,10]))
vertexNormalbyFN(SGsample(25))




Copyright 2015-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