avoid corrupting particle positions when computing planes