resize object with contraint to other object

ok ok i’ve got a good one.
how about if you have a 2d shape consisting of nothing more then an outline of the shape (lets say a violin).
then you create a grid object larger than the violin, and subdivided nicely.
then you could add a constraint to the grid to so as you resize it (smaller) the grid verts outside of the violin will only come as far in as the outline of the violin. you would have a perfect violin shaped grid!