swep
Keywords: cgx

Next: text Up: Commands Previous: surf Contents

##
swep

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

This keyword is used to sweep geometry (no nodes or elements) into the next higher dimension. Sweeping a point will create a line, sweeping a line will create a surface and sweeping a surface will create a body. At first a copy of the first set (see seta and copy) will be created. The copy is included in the second set. Then the connecting lines and surfaces are created and at last the bodies. Several transformations are available. For example scal creates a scaled copy, the scaling factors fx, fy, fz could be chosen independently,
swep part1 part2 scal 2
swep part1 part2 scal 1 1 2
tra will create a copy and will move it away by the vector dx, dy, dz,
swep 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 (the connecting lines will be arcs),
swep 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,
swep cylinder1 cylinder2 rad x 20.
swep 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,
swep section1 section2 mir p1 p2.

Next: text Up: Commands Previous: surf Contents