This "trial" compiles----haven't checked to see if it achieves the results you want. Did a DIM @ since you can't VARPTR register memory last time I checked. HTH _maxFace = 8 '8 faces _maxEdge = 6 '6 edges per face DIM @ faceCubes(_maxFace,_maxEdge,4) as int def blockfill(@faceCubes(0,0,0), sizeof(faceCubes(0,0,0)),0)