Structure Preserving Discretization