Calculations of three-dimensional collapse and fragmentation