VLsortC

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 1.0, Creation date: 2012-04-07, Last change: 2025-09-14

returns a point list that is sorted around its' center

Description

All points are part of the resulting list.

Example Illustration

 missing image of VLsortC(VL,d)

Syntax

[VL,WL,DL]=VLsortC(VL,[d])

Input Parameter

VL: Original point list
d: order same angle: 'outer' | 'inner'; default is 'inner'

Output Parameter

VL: Sorted point list
WL: Angle list
DL: Distance list

Examples

Show the difference of the order:
[VL,FL,CVL,CLL,NL,PL]=exp_2012_04_09 ('',1,0,0);
A=sortrows(CVL,[1,2,3]); % unsorted list
VLplot (A,'r-'), hold on % show the unsorted list
VLplot (VLsortC(A),'b-') % outer points first
VLplot (VLsortC(A,'inner'),'k.-') % inner points first




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