Header menu logo Rhino.Scripting.Fsharp

RhTopology Module

Functions and values

Function or value Description

RhTopology.sortToLoop getLine xs

Full Usage: RhTopology.sortToLoop getLine xs

Parameters:
    getLine : 'T -> Line
    xs : ResizeArray<'T>

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.

getLine : 'T -> Line
xs : ResizeArray<'T>

RhTopology.sortToLoopWithReversing getLine reverseInPlace xs

Full Usage: RhTopology.sortToLoopWithReversing getLine reverseInPlace xs

Parameters:
    getLine : '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.

getLine : 'T -> Line
reverseInPlace : int -> 'T -> unit
xs : ResizeArray<'T>

Type something to start searching.