Functions for reading ply info