.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "EXTEND" "1" "03 October 2016" "" ""
.SH NAME
extend \- produce an extended elevation from a .3d file
.SH SYNOPSIS
\fBextend\fR [ \fB--survey=SURVEY\fR ] [ \fB--specfile=ESPEC_FILE\fR ] [ \fB--show-breaks\fR ] \fBINPUT_3D_FILE\fR [ \fBOUTPUT_3D_FILE\fR ]
.SH "DESCRIPTION"
.sp
.RS
.B "Note:"
The \fBextend\fR program can also work on
\fBCompass\fR \fI\&.plt\fR (as can
\fBaven\fR and any other \fBSurvex\fR program which reads \fI\&.3d\fR
files).
.RE
.PP
If no specfile is given, extend starts with the highest station marked
as an entrance which has at least one underground survey leg attached
to it. If there are no such stations, the highest deadend station in
the survey (or the highest station if there are no deadends) is used.
Extend puts the first station on the left, then folds each leg out
individually to the right, breaking loops arbitrarily (usually at
junctions).
.PP
If the output filename is not specified, extend bases the output
filename on the input filename, but ending "_extend.3d". For example,
\fBextend deep_pit.3d\fR produces an extended elevation
called \fIdeep_pit_extend.3d\fR\&.
.PP
If you pass \fB--show-breaks\fR then a leg flagged as
"surface survey" will be added between each point at which a loop has
been broken - this can be very useful for visualising the result in
aven.
.PP
This approach suffices for simple caves or sections of cave, but for more
complicated situations human intervention is required. More complex
sections of cave can be handled with a specfile giving directions to
switch the direction of extension between left and right, to
explicitly specify the start station, or to break the extension at
particular stations or legs.
.PP
The specfile is in a format similar to cavern's data format:
.nf
;This is a comment
; start the elevation at station entrance.a
*start entrance.a ;this is a comment after a command
; start extending leftwards from station half-way-down.5
*eleft half-way-down.5
; change direction of extension at further-down.8
*eswap further-down.8
; extend right from further-down.junction, but only for
; the leg joining it to very-deep.1, other legs continuing
; as before
*eright further-down.junction very-deep.1
; break the survey at station side-loop.4
*break side-loop.4
; break survey at station side-loop.junction but only
; for leg going to complex-loop.2
*break side-loop.junction complex-loop.2
.fi
.PP
This approach requires some trial and error, but gives useful results
for many caves. The most complex systems would benefit from an
interactive interface to select and view the breaks and switches of
direction.
.SH "SEE ALSO"
.PP
\fB3dtopos\fR(1),
\fBaven\fR(1),
\fBcad3d\fR(1),
\fBcavern\fR(1),
\fBdiffpos\fR(1),
\fBdump3d\fR(1),
\fBsorterr\fR(1)