How to fit a pattern into a specific area shape (like nesting)

Hello, 
How to fit a pattern into a specific area with un uniform shape like attached picture?