Refactorings of particles, bitmap. Regression fix for mesh generators.