TRANSFORMMESH Applies a 3D affine transform to a mesh.

   MESH2 = transformMesh(MESH1, TRANSFO)
   MESH2 = transformMesh(VERTICES, FACES, TRANSFO)
   [V2, F2] = transformMesh(...)

   Example
     mesh1 = createOctahedron;
     transfo = eulerAnglesToRotation3d([30 20 10]);
     mesh2 = transformMesh(mesh1, transfo);
     figure; axis equal; hold on; drawMesh(mesh2, 'faceColor', 'g'); view(3);

   See also
     meshes3d, transformPoint3d, drawMesh

Package: matgeom