- added color float support for the OM OFF reader/writer
- added corresponding unittests - small fix for the PLY writer Note that for reading binary OFF files with color floats, the user has to set the flag, that floats are expected closes #1410 git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@818 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -296,6 +296,7 @@ TEST_F(OpenMeshReadWritePLY, WriteAndReadPLYWithFloatVertexColors) {
|
||||
EXPECT_FALSE(options.vertex_has_normal()) << "Wrong user options are returned!";
|
||||
EXPECT_FALSE(options.vertex_has_texcoord()) << "Wrong user options are returned!";
|
||||
EXPECT_TRUE(options.vertex_has_color()) << "Wrong user options are returned!";
|
||||
EXPECT_TRUE(options.color_is_float()) << "Wrong user options are returned!";
|
||||
|
||||
mesh_.release_vertex_colors();
|
||||
}
|
||||
@@ -349,6 +350,8 @@ TEST_F(OpenMeshReadWritePLY, WriteAndReadBinaryPLYWithFloatVertexColors) {
|
||||
EXPECT_FALSE(options.vertex_has_normal()) << "Wrong user options are returned!";
|
||||
EXPECT_FALSE(options.vertex_has_texcoord()) << "Wrong user options are returned!";
|
||||
EXPECT_TRUE(options.vertex_has_color()) << "Wrong user options are returned!";
|
||||
EXPECT_TRUE(options.color_is_float()) << "Wrong user options are returned!";
|
||||
EXPECT_TRUE(options.is_binary()) << "Wrong user options are returned!";
|
||||
|
||||
mesh_.release_vertex_colors();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user