How should I get rid of everything outside of the boundary curve?

Dynamo gives you a lot of options to do common tasks. I’d recommend “Geometry.Intersect” .

2015-02-27_172209