- the PLY reader now checks the options set by the user and will skip components that are not requested
- modified the loading unittest to test this behavior refs #1077 git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@741 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -125,8 +125,8 @@ private:
|
||||
|
||||
bool can_u_read(std::istream& _is) const;
|
||||
|
||||
bool read_ascii(std::istream& _in, BaseImporter& _bi) const;
|
||||
bool read_binary(std::istream& _in, BaseImporter& _bi, bool swap) const;
|
||||
bool read_ascii(std::istream& _in, BaseImporter& _bi, const Options& _opt) const;
|
||||
bool read_binary(std::istream& _in, BaseImporter& _bi, bool swap, const Options& _opt) const;
|
||||
|
||||
float readToFloatValue(ValueType _type , std::fstream& _in) const;
|
||||
|
||||
@@ -138,14 +138,14 @@ private:
|
||||
void readInteger(ValueType _type, std::istream& _in, int& _value) const;
|
||||
void readInteger(ValueType _type, std::istream& _in, unsigned int& _value) const;
|
||||
|
||||
/// Read unsupported properties in PLY file
|
||||
/// Read unsupported properties in PLY file
|
||||
void consume_input(std::istream& _in, int _count) const {
|
||||
_in.read(reinterpret_cast<char*>(&buff[0]), _count);
|
||||
}
|
||||
|
||||
mutable unsigned char buff[8];
|
||||
|
||||
/// Available options for reading
|
||||
/// Available per file options for reading
|
||||
mutable Options options_;
|
||||
|
||||
/// Options that the user wants to read
|
||||
|
||||
Reference in New Issue
Block a user