Rotate mesh about coordinate axes
rotatedMesh = rotate(mesh,orient)
example
rotatedMesh = rotate(mesh,orient) rotate the mesh object by an orientation, orient.
rotatedMesh
mesh
orient
collapse all
This example shows how to create an extendedObjectMesh object and rotate the object.
extendedObjectMesh
Construct a cuboid mesh.
mesh = extendedObjectMesh('cuboid');
Rotate the mesh by 30 degrees around the z axis.
mesh = rotate(mesh,[30 0 0]);
Visualize the mesh.
ax = show(mesh);
Extended object mesh, specified as an extendedObjectMesh object.
Description of rotation for an object mesh, specified as:
3-by-3 orthonormal rotation matrix
quaternion
1-by-3 vector, where the elements are positive rotations in degrees about the z, y, and x axes, in that order.
Rotated object mesh, returned as an extendedObjectMesh object.
applyTransform
join
scale
scaleToFit
show
translate
You have a modified version of this example. Do you want to open this example with your edits?