SLD ROTATE Syntax
sld rotate <copies> <body> <x1> <y1> <z1> <x2> <y2> <z2> <angle_degrees>
Parameters:
copies - Number of copies (1 = transform in place)
body - Body ID to rotate
x1,y1,z1 - First point of rotation axis
x2,y2,z2 - Second point of rotation axis
angle - Rotation angle in DEGREES (PEPS uses degrees, not radians)
Critical Points
| Point |
Explanation |
| Z coordinates = 0 |
Both axis points use Z=0, keeping the axis in the XY plane |
| Same axis for both rotations |
Must use identical endpoints for +90Β° and -90Β° rotations |
| Degrees not radians |
PEPS uses degrees for all angle parameters |
| Store endpoints before extending |
If extending for overlap mode, save original endpoints first |
From Working 2019 Code
'*** From _4fxComputeBladeEdge2019.ovm, line 173:
'*** Lay blade flat:
sld rotate 1 i_bladeBodyMaster w_xStartOfGroup w_yStartOfGroup 0 w_xEndOfGroup w_yEndOfGroup 0 90
'*** The blade line is defined by:
'*** Start: (w_xStartOfGroup, w_yStartOfGroup)
'*** End: (w_xEndOfGroup, w_yEndOfGroup)