SMS: Global dynamics of inelastic and center-type piecewise smooth vector fields in R2 and R3