Added purely viscous friction model; fixed bug in vertex generation from edge subsampling for boxes