Processing to repair unnecessary arrays with ofMesh

If “- inf” is included in the array of vertices in ofMesh, how can I skip for minutes and assign it to another array?

The following picture shows the vertices of ofMesh in a text file in order.
In this way, there are cases where vertices are firmly in and not.
I want to modify this to allMesh containing vertices, so I’d like to loop it by the original ofMesh for for and assign it to another empty ofMesh.