Compacting the path surface