Topology Optimization with Pattern Constraints