Skip to content

Commit 909aca6

Browse files
danlipsakwrobot
authored andcommitted
Merge topic 'ply_cell_texture'
9c2c636 Address MR comments. e83695b Rename local variable to start with lowercase. 1159dc6 Too much python and other warnings. a9fdbea Duplicate points for face texture. 79f7cf4 Test for face texture with duplicate texture points. Acked-by: Kitware Robot <[email protected]> Merge-request: !5334
2 parents 8d0c44f + 9c2c636 commit 909aca6

7 files changed

+312
-89
lines changed

IO/PLY/Testing/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ vtk_module_test_data(
44
Data/bunny.ply
55
Data/squareTextured.ply
66
Data/squareTexturedFaces.ply
7-
Data/vtk.png)
7+
Data/vtk.png
8+
Data/two_vtk_logos_stacked.png)
89

910
add_subdirectory(Cxx)
1011

IO/PLY/Testing/Cxx/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ vtk_add_test_cxx(vtkIOPLYCxxTests tests
77
)
88
vtk_add_test_cxx(vtkIOPLYCxxTests tests
99
TestPLYReaderTextureUVPoints,TestPLYReaderTextureUV.cxx squareTextured.ply
10+
vtk.png
1011
)
1112
vtk_add_test_cxx(vtkIOPLYCxxTests tests
1213
TestPLYReaderTextureUVFaces,TestPLYReaderTextureUV.cxx squareTexturedFaces.ply
14+
two_vtk_logos_stacked.png
1315
)
1416
vtk_test_cxx_executable(vtkIOPLYCxxTests tests)

IO/PLY/Testing/Cxx/TestPLYReaderTextureUV.cxx

+6-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ int TestPLYReaderTextureUV( int argc, char *argv[] )
3636
return EXIT_FAILURE;
3737
}
3838
std::string fn = "Data/";
39-
fn += argv[1];
40-
const char* fname = vtkTestUtilities::ExpandDataFileName(argc, argv, fn.c_str());
41-
const char* fnameImg = vtkTestUtilities::ExpandDataFileName(argc, argv, "Data/vtk.png");
39+
std::string plyName = fn + argv[1];
40+
std::string imageName = fn + argv[2];
41+
const char* fname = vtkTestUtilities::ExpandDataFileName(
42+
argc, argv, plyName.c_str());
43+
const char* fnameImg = vtkTestUtilities::ExpandDataFileName(
44+
argc, argv, imageName.c_str());
4245

4346
// Test if the reader thinks it can open the file.
4447
if (0 == vtkPLYReader::CanReadFile(fname))

0 commit comments

Comments
 (0)