New answers tagged

4

You can transform a GraphicsComplex too. For example: Manipulate[ cow /. {GraphicsComplex[vtx_, args___] :> GeometricTransformation[GraphicsComplex[vtx, args], Dynamic[EulerMatrix[{α, β, γ}]]]}, \ {{α, 0}, 0, 2 Pi, Pi/32}, {{β, 0}, 0, 2 Pi, Pi/32}, {{γ, 0}, 0, 2 Pi, Pi/32}, Initialization :> {cow := ExampleData[{"Geometry3D",...


2

It is simpler to work with normalized axes. If you have old axes given by: old={{1,0,0},{0,1,0},0,0,1}} and you want Euler rotation around new axes: new, you may rotate a vector vec relative to the new system by first transforming the vector to the new system, apply the Euler rotation and transform the vector back to the old system. Toward this aim, we ...


2

Edit: You could use RotationMatrix to build your own EulerMatrix by rotating about your custom axes 1,2, and 3. First check that you can reproduce EulerMatrix[{\[Alpha], \[Beta], \[Gamma]}, {3, 1, 3}] with RotationMatrix: RotationMatrix[\[Alpha], {0, 0, 1}].RotationMatrix[\[Beta], {1, 0,0}].RotationMatrix[\[Gamma], {0, 0, 1}] (* Check this is equivalent to ...


Top 50 recent answers are included