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 endpoint, it finds the next closest line start point. (Does not check other line endpoints 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 endpoint, it finds the next closest start point or endpoint. Line is used as an abstraction to hold start and end of arbitrary object. Reverses elements in place where required, using the reverseInPlace function that takes the index and the element as parameters.

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

Type something to start searching.