CVLedgeNormal

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CVL/Closed Vertex Lists
Introduced first in SolidGeometry 5.0, Creation date: 2020-09-14, Last change: 2025-09-14

Calculates normal vectors for curved closed contours

Description

CVL version of VLedgeNormal


See Also: CVLedgecenter , VLedgeNormal , CPLedgeNormal

Example Illustration

 missing image of CVLedgeNormal(CVL)

Syntax

[NL,OL]=CVLedgeNormal(CVL)

Input Parameter

CVL: CVL

Output Parameter

NL: Normal vector list for each vertex
OL: Orthogonal inplane vector list for each vertex

Examples


CVLedgeNormal(CVLsample(31))
CVLedgeNormal(CVLsample(32))




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

Algorithm (Workflow)

This function, CVLedgeNormal, calculates normal vectors for curved closed contours. It is part of the SolidGeometry library and was introduced in version 5.0. The function takes a closed polygon list (CVL) as input and outputs two lists: normal vectors (NL) and orthogonal in-plane vectors (OL) for each vertex.

Input Parameters

Output Results

Algorithm Steps

  1. Set the minimum angle threshold Amin using the getfuncparams function, with a default value of 0.001.
  2. Separate the input CVL into segments using the separateNaN function, which returns the number of segments n and their indices a.
  3. Initialize NL and OL as NaN arrays of the same size as CVL.
  4. Loop through each segment of the contour:
  5. If no output arguments are specified, plot the results:
Algorithm explaination created using ChatGPT on 2025-08-19 01:27. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21