VLNLplot

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 4.3, Creation date: 2018-09-13, Last change: 2025-09-14

plots a normal vector list at a vertex list



See Also: VLplot , VLELplot , VLELplots , VLplotmotion , VLFLplot , VLFLplotfacets , PLplot , PLELplot , CVLplot , CVLplots

Example Illustration

 missing image of VLNLplot(VL,NL,vi,c,w)

Syntax

h=VLNLplot(VL,NL,[vi,c,w])

Input Parameter

VL: Vertex list
NL: Normal vector list
vi: optional index selector
c: optional color and line
w: optional line thickness

Output Parameter

h: handle to plot

Examples


A=SGsample(5); NL=VLFLvertexNormal(A); SGfigure; VLNLplot(A.VL,NL); view(-30,30)
VL=rand(100,3)*10; NL=rand(100,3); SGfigure; h=VLNLplot(VL,NL,1:10,'m.-',1)




Copyright 2018-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 algorithm is designed to plot normal vectors at specified vertices using the function VLNLplot. Below is a detailed explanation of the algorithm and its parameters:

Input Parameters

Output

Algorithm Steps

  1. Initialize vi to include all vertices if not specified. This is done by setting vi=1:size(VL,1).
  2. Set the default color c to 'g' (green) if not specified.
  3. Set the default line thickness w to 2 if not specified.
  4. Initialize an empty vector h to store plot handles.
  5. Calculate the number of vertices to plot, nV, as the length of vi.
  6. Compute the size of the bounding box s using the function sofBB on the selected vertices VL(vi,:).
  7. Determine the text size ts based on the number of vertices. If nV is less than 100, set ts=s/50; otherwise, set ts=[].
  8. Iterate over each vertex index in vi:

The algorithm effectively visualizes normal vectors at specified vertices, allowing for a clear representation of vector orientations in 3D space.

Algorithm explaination created using ChatGPT on 2025-08-19 01:43. (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