%% Create and Translate Cuboid Mesh
% This example shows how to create an extendedObjectMesh object and translate the object.
% Construct a cuboid mesh.

mesh = extendedObjectMesh('cuboid');

% Translate the mesh by 5 units along the negative y axis.

mesh = translate(mesh,[0 -5 0]);

% Visualize the mesh.

ax = show(mesh);
ax.YLim = [-6 0];

% Copyright 2019 The MathWorks, Inc.