Copied it from the mesh intersection code. Wasn't this done like this intentionally to avoid altering the geometry offsets attribute? Should it be changed in the mesh intersection code as well?