[MESH_TOOLS] using d->output for preventing some crashes, improves meshMapping