'\" t
.\"     Title: CPI
.\"    Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL-NS Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 04/13/2022
.\"    Manual: BRL-CAD User Commands
.\"    Source: BRL-CAD
.\"  Language: English
.\"
.TH "CPI" "nged" "04/13/2022" "BRL\-CAD" "BRL\-CAD User Commands"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
cpi \- Copies \fIold_tgc\fR(an existing TGC shape) to a new TGC shape (\fInew_tgc\fR), positions the new TGC such that its base vertex is coincident with the center of the top of \fIold_tgc\fR, and puts \fImged\fR into the primitive edit state with \fInew_tgc\fR selected for editing\&.
.SH "SYNOPSIS"
.HP \w'\fBcpi\fR\ 'u
\fBcpi\fR {\fIold_tgc\ new_tgc\fR}
.SH "DESCRIPTION"
.PP
Copies
\fIold_tgc\fR(an existing TGC shape) to a new TGC shape (\fInew_tgc\fR), positions the new TGC such that its base vertex is coincident with the center of the top of
\fIold_tgc\fR, and puts
\fImged\fR
into the primitive edit state with
\fInew_tgc\fR
selected for editing\&. This command was typically used in creating models of wiring or piping runs; however, a pipe primitive has since been added to
\fIBRL\-CAD\fR
to handle such requirements\&.
.SH "EXAMPLES"
.PP
The example shows the use of the
\fBcpi\fR
command to copy an existing TGC shape to a new TGC shape and position the new shape with its base vertex coincident with the center of the top of the existing shape\&.
.PP
\fBExample\ \&1.\ \&Copy an existing TGC shape to a new TGC shape.\fR
.PP
mged>
\fBcpi tgc_a tgc_b\fR
.PP
Copies
\fItgc_a\fR
to
\fItgc_b\fR
and translates
\fItgc_b\fR
to the end of
\fItgc_a\fR\&.
.SH "AUTHOR"
.PP
BRL\-CAD Team
.SH "BUG REPORTS"
.PP
Reports of bugs or problems should be submitted via electronic mail to
devs@brlcad\&.org
