%% Create and Join Two Object Meshes
% This example shows how to create extendedObjectMesh objects and join them together.
% Construct two meshes of unit dimensions.

sph = extendedObjectMesh('sphere');
cub = extendedObjectMesh('cuboid');

% Join the two meshes.

cub = translate(cub,[0 0 1]);
sphCub = join(sph,cub);

% Visualize the final mesh.

show(sphCub);

% Copyright 2019 The MathWorks, Inc.