Inhomogeneous curing or hardening