Skip to content

node distance

Module: solid

Category: nlconstraint

Type string: "node distance"

Parameters

Name Description Default Units
laugon laugon false []
augtol augtol 0.01 []
penalty penalty 0 []
node node []
minaug minaug 0 []
maxaug maxaug 10 []
target target 0 []
relative relative true []

Description

A node distance constraint can be used to enforce a user-defined distance between two nodes. The default configuration of this constraint is such that the initial distance between the two nodes is preserved. The target distance can be defined as a distance relative to the initial separation between the two nodes, or as an absolute distance.

Example: This example illustrates how the node distance constraint can be used to reduce the distance between two nodes to zero: the target is set to zero and the relative flag is off so that the target is interpreted as an absolute distance.

<constraint name="NodeDistance3" type="node distance">
  <laugon>0</laugon>
  <augtol>0.01</augtol>
  <penalty lc="1">1</penalty>
  <node>17,158</node>
  <minaug>0</minaug>
  <maxaug>10</maxaug>
  <target>0</target>
  <relative>0</relative>
</constraint>