(self, stream, text, byte_order)
Read the actual data from a PLY file.
Read the actual data from a PLY file.
Read the actual data from a PLY file .
def _read(self, stream, text, byte_order):
        """
        Read the actual data from a PLY file.

        """
        if text:
            self._read_txt(stream)
        else:
            if self._have_list:
                # There are list properties, so a simple load is
                # impossible.
                self._read_bin(stream, byte_order)
            else:
                # There are no list properties, so loading the data is
                # much more straightforward.
                self._data = _np.fromfile(stream, self.dtype(byte_order), self.count)

        if len(self._data) < self.count:
            k = len(self._data)
            del self._data
            raise PlyParseError("early end-of-file", self, k)

        self._check_sanity()
def _read ( self , stream , text , byte_order ) : if text : self . _read_txt ( stream ) else : if self . _have_list : # There are list properties, so a simple load is # impossible. self . _read_bin ( stream , byte_order ) else : # There are no list properties, so loading the data is # much more straightforward. self . _data = _np . fromfile ( stream , self . dtype ( byte_order ) , self . count ) if len ( self . _data ) < self . count : k = len ( self . _data ) del self . _data raise PlyParseError ( "early end-of-file" , self , k ) self . _check_sanity ( )