output all valid vetex points and thus fix the problem of NAN