3d drawing class structure