\fBReturns:\fP The other \fBAutoSegment\fP the \fIsame\fP direction as \fCreference\fP, this is only meaningful on \fBAutoContactHTee\fP or \fBAutoContactVTee\fP\&. If there is no opposite, \fCNULL\fP is returned\&.
\fBReturns:\fP The \fBAutoSegment\fP in the \fIperpandicular\fP direction to \fCreference\fP, this is only meaningful on AutoContacTurn\&. It there is no unique perpandicular, \fCNULL\fP is returned\&.
.PP
Implements \fBAutoContact\fP\&.
.SS"\fBAutoSegment\fP * getSegment (unsigned int index) const\fC [virtual]\fP"
\fBReturns:\fP The nth anchored \fBAutoSegment\fP\&. The index is significant:
.IP"\(bu"2
\fB0\fP : first horizontal (\fBh1\fP)\&.
.IP"\(bu"2
\fB1\fP : second horizontal (\fBh2\fP)\&.
.IP"\(bu"2
\fB2\fP : first vertical (\fBb1\fP)\&.
.IP"\(bu"2
\fB3\fP : second vertical (\fBb2\fP)\&.
.PP
.PP
Not all the indexes are filled for every \fBAutoContact\fP\&. For example \fCTurn\fP have \fBh1\fP and \fBb1\fP, and \fCHTee\fP have \fBh1\fP, \fBh2\fP and \fBv1\fP\&.
.PP
Implements \fBAutoContact\fP\&.
.SS"void updateGeometry ()\fC [virtual]\fP"
Compute the new position of the \fBAutoContact\fP based on the \fBAutoSegment\fP positions\&. The \fBSession\fP mechanism ensure that all \fBAutoSegment\fP are set into their final positions before calling this updator\&.
Restore the topology (i\&.e\&. connexity) of the contact after one or both connected segments has changed layer\&.
.PP
Based on the layer depth delta between the two perpandiculars segments\&. Three case can occurs:
.IP"\(bu"2
The delta is \fBzero\fP, then just sets the layer of the contact to the common metal layer (turn in same layer)\&.
.IP"\(bu"2
The delta is \fBone\fP, then sets the contact layer to VIA connecting the two layers\&.
.IP"\(bu"2
The delta \fBcannot be equal to two\fP, due to the alternatives routing directions, it would mean a \fIturn\fP connecting two \fIhorizontals\fP (or verticals) in different layers\&.
.IP"\(bu"2
The delta is \fBthree\fP, then create a dogleg to restore the connexity\&. The dogleg will be created on the connected segment which as been \fIlayer invalidated\fP\&. If both of them have been invalidated, the horizontal one is preferred\&.
.IP"\(bu"2
A delta of more than \fBthree\fP is an error, and must never occurs\&.