Design of lattice structure for additive manufacturing in CAD environment