Perliminary code for adaptive supports
fix nail gap bug.