%% Mesh Rotated Right-Angle Bend Shape
% Create a right-angle bend shape of lengths of 10 m and 2 m, width of 2m, and rotate it about the Z-axis by 60 degrees.

bend = bendRightAngle(Length=[10 2],Width=[2 2]);
bend = rotateZ(bend,60)
show(bend)

%
% Mesh the right-angle bend shape at a maximum edge length of 1 m.

mesh(bend,MaxEdgeLength=1)

% Copyright 2020 The MathWorks, Inc.