Shape based router