Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

DEFINE SORT

  • Last UpdatedFeb 01, 2023
  • 1 minute read

Purpose

Change the default sort method.

Syntax

DEFINE ( SORT ) ( /AROUND ) ( $W ) ( x-near y-near )
    ( /CURSOR    )
  -------------------------------
  ( /NEAREST ) ( x-near y-near )
    ( /CURSOR )
  ---------------------
  ( /SHOW  )
  ( /STANDARD )
  ( /X  )
  ( /Y  )
 ( /Z  )
              --------------------------
              ( /EXISTING ) ( /TOL= $N )
               ( /OFF )

Description

There are default methods used for sorting points when GETting or FITting Sections, Waterlines, Buttocks and Diagonals but the user can specify that an alternative sort be used. See the SORT command for further information of the other sorting algorithms that are available.

This is particularly useful when using the FIT command where a series of curves need to be fitted in succession and the default sort is not appropriate.

The sort method used can be set back to the default by giving the /STANDARD option.

The /EXISTING /TOL=$N option instructs the system to use the existing curve as a guide to sorting points when regenerating or refitting a curve. The TOLerance value determines the maximum distance a data point can lie from the existing curve before the curve can no longer be used as a guide for sorting the points. If no such guide curve can be found or it is too far away from the new data points, then one of the other sorting methods is used, as selected by the user. The /OFF option disables this functionality.

Command Qualifiers

See the SORT command for a description of possible sort methods.

Examples

DEFINE SORT /X
DEFINE SORT /NEAREST 2.35 0.987

Related Links
TitleResults for “How to create a CRG?”Also Available in