clf
top=1;
bot=-1;
param3d([bot,bot],[bot,bot],[bot,top]);
p=get("hdl"); p.foreground=5;
param3d([bot,bot],[bot,top],[bot,bot]);
p=get("hdl"); p.foreground=5;
param3d([bot,top],[bot,bot],[bot,bot]);
p=get("hdl"); p.foreground=5;

param3d([bot,bot],[bot,top],[top,top]);
p=get("hdl"); p.foreground=5;
param3d([bot,top],[bot,bot],[top,top]);
p=get("hdl"); p.foreground=5;

param3d([bot,bot],[top,top],[bot,top]);
p=get("hdl"); p.foreground=5;
param3d([bot,top],[top,top],[bot,bot]);
p=get("hdl"); p.foreground=5;

param3d([top,top],[bot,bot],[bot,top]);
p=get("hdl"); p.foreground=5;
param3d([top,top],[bot,top],[bot,bot]);
p=get("hdl"); p.foreground=5;

param3d([top,top],[top,top],[bot,top]);
p=get("hdl"); p.foreground=5;
param3d([top,top],[bot,top],[top,top]);
p=get("hdl"); p.foreground=5;
param3d([bot,top],[top,top],[top,top]);
p=get("hdl"); p.foreground=5;

top=0.5;
bot=-0.5;
param3d([bot,bot],[bot,bot],[bot,top]);
p=get("hdl"); p.foreground=5;
param3d([bot,bot],[bot,top],[bot,bot]);
p=get("hdl"); p.foreground=5;
param3d([bot,top],[bot,bot],[bot,bot]);
p=get("hdl"); p.foreground=5;

param3d([bot,bot],[bot,top],[top,top]);
p=get("hdl"); p.foreground=5;
param3d([bot,top],[bot,bot],[top,top]);
p=get("hdl"); p.foreground=5;

param3d([bot,bot],[top,top],[bot,top]);
p=get("hdl"); p.foreground=5;
param3d([bot,top],[top,top],[bot,bot]);
p=get("hdl"); p.foreground=5;

param3d([top,top],[bot,bot],[bot,top]);
p=get("hdl"); p.foreground=5;
param3d([top,top],[bot,top],[bot,bot]);
p=get("hdl"); p.foreground=5;

param3d([top,top],[top,top],[bot,top]);
p=get("hdl"); p.foreground=5;
param3d([top,top],[bot,top],[top,top]);
p=get("hdl"); p.foreground=5;
param3d([bot,top],[top,top],[top,top]);
p=get("hdl"); p.foreground=5;

param3d([1,0.5],[1,0.5],[1,0.5]);
p=get("hdl"); p.foreground=5;
param3d([-1,-0.5],[1,0.5],[1,0.5]);
p=get("hdl"); p.foreground=5;
param3d([1,0.5],[-1,-0.5],[1,0.5]);
p=get("hdl"); p.foreground=5;
param3d([1,0.5],[1,0.5],[-1,-0.5]);
p=get("hdl"); p.foreground=5;
param3d([-1,-0.5],[-1,-0.5],[1,0.5]);
p=get("hdl"); p.foreground=5;
param3d([-1,-0.5],[1,0.5],[-1,-0.5]);
p=get("hdl"); p.foreground=5;
param3d([1,0.5],[-1,-0.5],[-1,-0.5]);
p=get("hdl"); p.foreground=5;
param3d([-1,-0.5],[-1,-0.5],[-1,-0.5]);
p=get("hdl"); p.foreground=5;

title('$V-E-F=16-32+16=0 \mbox{ not convex nor planar$','fontsize',4);
a=gca(); a.box="off"; a.isoview="on";
tmp=a.x_ticks; tmp.labels=[]; tmp.locations=[];
a.x_ticks=tmp; xlabel("");
a.y_ticks=tmp; ylabel("");
a.z_ticks=tmp; zlabel("");
xs2pdf(0,'badcube3.pdf');
