generating mesh tree staticaly