%% Create and Rotate Cuboid Mesh
% This example shows how to create an extendedObjectMesh object and rotate the object.
% 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);

% Copyright 2019 The MathWorks, Inc.