function geommodel(event)

frame=event;

width=frame.get('width').getValue;
height=frame.get('height').getValue;

g1=rect2(str2num(width),str2num(height),'base','corner','pos',[0,0]);
s.objs={g1};

fem.draw=struct('s',s);
fem.geom=geomcsg(fem);

storedata(frame,fem);

parent=frame.get('axis').getHandle;
cla(parent);
geomplot(fem,'parent',parent);

