Slicing of tessellated models for additive manufacturing based on variable thickness layers