Working with extruded styrofoam is a core technique for model railroading. These videos are a helpful resource on how to do that.

Thanks to John from the Railwire for the heads up.