Skip to content
Snippets Groups Projects
Commit 79f7cf4c authored by Dan Lipsa's avatar Dan Lipsa
Browse files

Test for face texture with duplicate texture points.

parent c6a09043
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,8 @@ vtk_module_test_data(
Data/bunny.ply
Data/squareTextured.ply
Data/squareTexturedFaces.ply
Data/vtk.png)
Data/vtk.png
Data/2vtk.png)
add_subdirectory(Cxx)
......
......@@ -7,8 +7,10 @@ vtk_add_test_cxx(vtkIOPLYCxxTests tests
)
vtk_add_test_cxx(vtkIOPLYCxxTests tests
TestPLYReaderTextureUVPoints,TestPLYReaderTextureUV.cxx squareTextured.ply
vtk.png
)
vtk_add_test_cxx(vtkIOPLYCxxTests tests
TestPLYReaderTextureUVFaces,TestPLYReaderTextureUV.cxx squareTexturedFaces.ply
2vtk.png
)
vtk_test_cxx_executable(vtkIOPLYCxxTests tests)
......@@ -36,9 +36,12 @@ int TestPLYReaderTextureUV( int argc, char *argv[] )
return EXIT_FAILURE;
}
std::string fn = "Data/";
fn += argv[1];
const char* fname = vtkTestUtilities::ExpandDataFileName(argc, argv, fn.c_str());
const char* fnameImg = vtkTestUtilities::ExpandDataFileName(argc, argv, "Data/vtk.png");
std::string plyName = fn + argv[1];
std::string imageName = fn + argv[2];
const char* fname = vtkTestUtilities::ExpandDataFileName(
argc, argv, plyName.c_str());
const char* fnameImg = vtkTestUtilities::ExpandDataFileName(
argc, argv, imageName.c_str());
// Test if the reader thinks it can open the file.
if (0 == vtkPLYReader::CanReadFile(fname))
......
578d7d00a06e2459970e191cfc9a143e949e7fdc141c87e0a5b88ab44c4103fb1efe1368681c5433719da77caea62e3f68820aaf425f5ff5130eaea953f10515
f5bec009bc0f2a1c040ac594aa210a5845f23c732358f132e8df3dc1ee414bde8919c12def49be6832fc0c22ab6a1aced784c286d432c57b51a59477ff79ba87
673205df28c0514ee54055ecbdcb0810a254cf45d5608660f3e9b33141f21acc972b345d829cf2ea827d58113fed903289a0b6431cc22a7c25bf6c335c73e61a
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment