copy
Keywords: cgx

Next: corrad Up: Commands Previous: comp Contents

##
copy

       'copy' <set> <new_set> ['scal' <fx> <fy> <fz>]|
                              ['tra' <dx> <dy> <dz>]|
                              ['rot' <p1> <p2> <alfa>]|
                              ['rad' 'x'|'y'|'z'|'p'<PNT> <dr>]|
                              ['mir' <P1> <P2>]

This keyword is used to create a copy of a set (see seta about sets). Only geometry but no nodes or elements can be copied. The copy is included in the new set. Several transformations are available. For example scal creates a scaled copy, the scaling factors fx, fy, fz could be chosen independently,
copy part1 part2 scal 2
copy part1 part2 scal 1 1 2
tra will create a copy and will move it away by the vector dx, dy, dz,
copy set1 set2 tra 10 20 30
rot will create a copy and will move it around the axis defined by the points p1 and p2 by alfa degrees,
copy set1 set2 rot p0 px 20.
rad will create a copy and will move it radially to the x-, y- or z-axis or will create a spherical section if just a single point is defined,
copy cylinder1 cylinder2 rad x 20.
copy sphere1 sphere2 rad pP0 10.
mir will create a mirrored copy. The mirror-plane is placed normal to the direction running from P1 to P2 and placed at P2,
copy section1 section2 mir P1 P2.

Next: corrad Up: Commands Previous: comp Contents