__header__
Description
Organizes a collection of points in ascending or descending order.
Inputs
CIFViewer
Points
Parameters
Points
the sorted points
SortType
MinMax|Polar|Spacing|Pos|Dist|Grid|Rows|Cols
Note the grid sort look for the extreme points and then
determine the grid pattern
Better is to call GEOHoughLine that sort the points into lines
and then do the grid sort
SortArguement
MinMax
SortArguement
0 = x axis
1 = y axis
2 = z axis
-1 = auto select on largest range
Polar
SortArguement = start angle
Spacing
SortArguement not used
IndexPos
SortArguement first index
Distance
set the points in order along the line
SortArguement not used
Rows/Cols
SortArguement min dist (resolution) for points to be considered in the same row/column
Invert
if set inverts the direction i.e. Max to Min
for row and col 1 inverts x 2 inverts y 3 inverts both
RenderStyle
RefreshViewer
RetX
Rety
for a grid sort the return grid size
Count
return nb of sorted points
__footer__