2006-08-29 05:39 PM
2006-08-31 05:11 PM
2006-09-11 01:10 AM
The difference between SWEEPGROUP and SWEEPGROUP{2} is that in the
former case the actual transformation matrix is applied again to the
direction vector of the sweeping operation with respect to the current
coordinate system. (Roughly speaking, in the case of SWEEPGROUP, the
current transformation is applied to the direction vector twice with
respect to the global coordinate system.)
See the example below. We rotate the coordinate system (CS) by 45
degrees around the z axis. Since SWEEPGROUP rotates the direction vector
again in the current CS by 45, the direction vector of swept_1 in the
global CS will be {0,1,0}. In the case of SWEEPGROUP{2} the direction
vector is left as is in the local CS, so its direction in the global
space will be {sqr(2)/2,sqr(2)/2,0}. (See the attached example.)
resol 8
rotz 45
group "tool_1"
addz 1
sphere 0.2
del 1
endgroup
group "tool_2"
addz 2
sphere 0.2
del 1
endgroup
swept_1 = sweepgroup( "tool_1", 1, 0, 0 )
placegroup swept_1
swept_2 = sweepgroup{2}( "tool_2", 1, 0, 0 )
placegroup swept_2
2006-09-11 05:45 AM
2006-09-11 08:09 AM
I was wondering how you knew thatI did not knew. I compared both commands and it was obvisiously the same.
the syntax was not different between
sweepgroup and sweepgroup{2}