transform: Standardised the Rx, Ry, Rz and Ra rotational tranformations
so that they operate in the conventional manner in a right-handed coordinate system: //- Rotational transformation tensor about the x-axis by omega radians // The rotation is defined in a right-handed coordinate system // i.e. clockwise with respect to the axis from -ve to +ve // (looking along the axis). inline tensor Rx(const scalar& omega) //- Rotational transformation tensor about the y-axis by omega radians // The rotation is defined in a right-handed coordinate system // i.e. clockwise with respect to the axis from -ve to +ve // (looking along the axis). inline tensor Ry(const scalar& omega) //- Rotational transformation tensor about the z-axis by omega radians // The rotation is defined in a right-handed coordinate system // i.e. clockwise with respect to the axis from -ve to +ve // (looking along the axis). inline tensor Rz(const scalar& omega) //- Rotational transformation tensor about axis a by omega radians // The rotation is defined in a right-handed coordinate system // i.e. clockwise with respect to the axis from -ve to +ve // (looking along the axis). inline tensor Ra(const vector& a, const scalar omega)
This commit is contained in:
@ -56,7 +56,7 @@ vertices #codeStream
|
||||
});
|
||||
|
||||
// Rotate points around z-axis
|
||||
points = transform(Rz(-degToRad($angle)), points);
|
||||
points = transform(Rz(degToRad($angle)), points);
|
||||
|
||||
// Append points 6 and 7
|
||||
points.append(points[0]); // pt 6
|
||||
|
||||
@ -56,7 +56,7 @@ vertices #codeStream
|
||||
// Rotate points around z-axis and append
|
||||
for (label i = 0; i < 8; i++)
|
||||
{
|
||||
points.append(transform(Rz(-degToRad(i*$angle)), initPoints));
|
||||
points.append(transform(Rz(degToRad(i*$angle)), initPoints));
|
||||
}
|
||||
|
||||
// Duplicate z points
|
||||
|
||||
Reference in New Issue
Block a user