next up previous contents index
Next: GEOMETRY FILLET LINE [lnam1] lnam2 lnam3 Up: Primary Command GEOMETRY Previous: GEOMETRY BODY PRISM [bnam] snam_front snam_back

GEOMETRY COPY part [name] trnam [times] [depn]
or:                    ... part [name] [times] trtype [tr_new] defn [depn]

              

This command is used to define new geometric parts by copying existing ones using either a previously defined transformation or a transformation that is defined as part of this command. Selection of the geometry to be copied is either by keyboard or cursor. Multiple copies are achieved by specifying the number of times the copy is to be performed.


part = name of a point, line, surface, body, or set to be copied.
name = name of a new point, line, surface, body, or set that will be created by taking a
copy of `part' and transforming it. If `name' is omitted FEMGEN will
automatically generate a new name. If multiple copies are specified then `name'
will be given to the final copy of the original part and FEMGEN will generate
names for the parts generated by the intermediate copies.
trnam = name of the transformation to be used. (Defined with
CONSTRUCT TRANSFORM)
times = number of times the part is to be copied. The default is 1.
depn = dependency control, either DEPENDEN or INDEPEND (the default). If the
transformation is specified as part of this command then the copy operation can
only be independent. If DEPENDEN is specified then the geometry of any
parts created by the GEOMETRY COPY command will remain dependent on
the transformation used in the command and also on the geometry of the original
part. Thus if the transformation is subsequently redefined in any way (e.g. by
changing the co-ordinates of the reference points used in its definition) or the
geometry of the original part is changed then the geometry of the parts generated
by the COPY command will be changed correspondingly. If INDEPEND is
specified then any parts created by the GEOMETRY COPY command will be
unaffected by subsequent redefinitions of the transformation used in the copy or
by changes to the geometry of the original part.
trtype = Type of the transformation to be used. (See below).
tr_new = name for transform created as part of the copy operation. A new transform name
will be saved in the database if a name is given for the transform or if the copy
is defined as being dependent on the transform.
defn = Definition of transform (See below).


trtype defn
TRANSLATE Two point translation definition OR
Three offset distances with optional coordinate system
ROTATE Three or four point rotation definition OR
Two points and angle of rotation
MIRROR Two point mirror definition
SCALE Two point scale definition with a scaling factor plus a second
optional scaling factor

Whenever possible, instead of generating new objects, existing ones with the same topology are used. Nodes on polylines are not tested for coincidence with existing nodes. See also the commands GEOMETRY SWEEP and CONSTRUCT SPACE TOLERANCE. For a detailed description of the definitions of the four transforms the user is referred to the command CONSTRUCT TRANSFORM. Although translations may be performed using cylindrical or spherical coordinate systems it is recommended that only rectangular systems are used.

Return Level: GEOMETRY COPY


 
Figure 2.67: Geometry Copy S1 to S2. Note that no body is created.
\begin{figure}
\centerline{
\psfig {figure=diagrams/copy.eps,width=2.5in}
}\end{figure}

Examples:

1.
GEOMETRY COPY SET1 ROT1

Copy all parts associated with set SET1 using transformation ROT1, and let FEMGEN generate a name for the new set.

2.
GEOMETRY COPY SET1 SET2 TR1

Copy all points, lines, surfaces, and bodies contained within set SET1 to create a new set SET2 using transformation TR1.

3.
GEOMETRY COPY S1 SSRF TR6 4

Copy surface S1 4 times using transformation TR6. The name of the final surface generated is to be SSRF. FEMGEN will generate the names for the intermediate surfaces.

4.
GEOMETRY COPY S1 SSRF TR6 4 DEPENDEN

Copy surface S1 4 times using transformation TR6. The name of the final surface generated is to be SSRF. FEMGEN will generate the names for the intermediate surfaces. The geometry of the parts created will remain dependent on the transformation TR6 and on the geometry of the original surface S1 and will be effected by any subsequent change to the definition of TR6 or to the geometry of S1.

5.
GEOMETRY COPY SET1 ROTATE PAXIS1 PAXIS2 PSTART P43

Copies all points, lines, surfaces and bodies in SET1 by rotating about an axis through points PAXIS1 and PAXIS2 by an angle defined by point PSTART to point P43.

6.
GEOMETRY COPY SET1 TRANSLATE 10 0 12 GLOBAL

Copies all points, lines, surfaces and bodies in SET1 using a translation of x = 10, y = 0, z = 12 in the global current coordinate system, regardless of the currently active coordinate system.

7.
GEOMETRY COPY SET1 TRANSLATE 1.05 2.392 0 RECT1

Copies all points, lines, surfaces and bodies in SET1 using a translation of x = 1.05, y = 2.392, z = 0 in the previously defined coordinate system RECT1.

8.
GEOMETRY COPY L1 TRANSLATE TR1 1 0 0

Copies the line L1 to a new position offset from the current location by 1 unit in the x direction. In addition it will create a new transform called TR1 which defines this translation.

9.
GEOMETRY COPY L1 TRANSLATE 1 0 0 DEPENDENT

Copies the line L1 to a new position offset from the current location by 1 unit in the x direction. In addition it will create a new transform called TR1 which defines this translation and make the new points dependent on the transform TR1.

See also the following commands

'CONSTRUCT SPACE'.
'CONSTRUCT TRANSFORM'.
'GEOMETRY SWEEP'.
'UTILITY TABULATE GEOMETRY TRANSFORM'


next up previous contents index
Next: GEOMETRY FILLET LINE [lnam1] lnam2 lnam3 Up: Primary Command GEOMETRY Previous: GEOMETRY BODY PRISM [bnam] snam_front snam_back

Femsys Limited
1st October 1999