PLofVLplaneprojection

by Yilun Sun, SG-Lib Toolbox: SolidGeometry 5.6 - PL/Point Lists
Introduced first in SolidGeometry 4.9, Creation date: 2020-01-13, Last change: 2025-09-14

main axis projection of a vertex list along the largest dimension of a normal vector

Description

This function was written by YILUN Sun on 2018-08-16. It uses the effect that the max function returns the first occurance index of the largest value of the operand.
This is not a true to scale function since it is a axis projection !!!
This function can easily extented to more than 3 dimensions.

See Also: VLprojection , VLtransT , TofVL

Example Illustration

 missing image of PLofVLplaneprojection(VL,nv)

Syntax

PL=PLofVLplaneprojection(VL,nv)

Input Parameter

VL: Vertex list
nv: normal vector; default is [0 0 1] ==> xy projection

Output Parameter

PL: 2D Point list as main axis projection (not true to scale)

Examples


PLofVLplaneprojection (rand(30,3));
PLofVLplaneprojection (rand(30,3),[0 0 1]);
PLofVLplaneprojection (rand(30,3),[0 1 0]);
PLofVLplaneprojection (rand(30,3),[1 0 0]);
PLofVLplaneprojection (rand(30,3),[1 1 1]);
PLofVLplaneprojection (rand(30,3),[.9 0 1]);

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