An algorithm can fill any geometry with LEGO bricks. Bricks can have random size from 1x1 to 2x8.
First creates a cloud of points, then selects a random point to place the brick. If the brick intersects with its neighbors, then the brick is reduced until it can be placed. This ensures optimal filling with bricks.