Geometric modeling of lattice structures for additive manufacturing