demo04

Contents

2D Hyperrectangle [-1,1]x[0,1] - mesh with orthotopes

fprintf('--------------- fc_hypermesh.demos.demo04\n')
fprintf('2D Hyperrectangle [-1,1]x[0,1] - mesh with orthotopes\n')
fprintf('---------------\n')

Oh=fc_hypermesh.OrthMesh(2,[10,7],'box',[-1,1;0,1],'type','orthotope');

close all
% plot the main mesh
figure(1)
Oh.plotmesh('legend',true)
% plot the 1-face meshes
figure(2)
Oh.plotmesh('color',[0.8,0.8,0.8])
hold on
Oh.plotmesh('m',1,'Linewidth',2,'legend',true)
axis off
% plot the 0-face meshes
figure(3)
Oh.plotmesh('m',1,'color','k')
hold on
Oh.plotmesh('m',0,'legend',true)
axis off

fc_tools.graphics.DisplayFigures()
--------------- fc_hypermesh.demos.demo04
2D Hyperrectangle [-1,1]x[0,1] - mesh with orthotopes
---------------
demo04-1.pngdemo04-2.pngdemo04-3.png