General construction scheme for geometrically nontrivial flat band models | Synapse