See attached cb file.
1. Made a new layer called "Boundary"
2. created a rectangle the same size as the stock (polyrectangle1)
3. in the 3DSurface1 MOp set "Boundary Method" to "Selected Shapes"
4. in the 3DSurface1 MOp set "Boundary Shape IDs" to 1 (i.e. polyrectangle1)
To adjust how the tool cuts within the boundary shape, play with values in "Boundary Margin" it can accept both positive and negative numbers.