[particles] added meshing code.