How can I apply mesh transformations using the Blender's mathutils
3D transformation matrix to a sphere formed using bpy.ops.mesh.primitive_uv_sphere_add()
I am successfully able to construct a 3D transformtaion matrix using mathutils.Matrix.Rotation
matrix and mathutils.Matrix.Translation
matrix and apply the transform()
operation on a mesh created manually using me = bpy.data.meshes.new()
and passing it the vertices and faces/edges using me.from_pydata(verts, edges, faces)
. However, I would like to use the same transformation matrix to apply the corresponding transformations to a sphere.
Can someone point out a way to do the above; or suggest some workaround for the same?