RhTopology Module
Functions and values
Function or value |
Description
|
|
Sorts elements in place to be in a circular structure. For each line end point it finds the next closest line start point. (Does not check other line end points that might be closer) Line is used as an abstraction to hold start and end of arbitrary object.
|
Full Usage:
RhTopology.sortToLoopWithReversing getLine reverseInPlace xs
Parameters:
'T -> Line
reverseInPlace : int -> 'T -> unit
xs : ResizeArray<'T>
|
Sorts elements in place to be in a circular structure. For each line end it finds the next closest start point or end point. Line is used as an abstraction to hold start and end of arbitrary object. Reverses the input in place, where required via reverseInPlace function that takes the index of the element as parameter.
|