Skip to content
Snippets Groups Projects
Commit 36c7eaa3 authored by Simon Oehrl's avatar Simon Oehrl
Browse files

Merge branch 'feature/#468_access_isosurface_scalar' of...

Merge branch 'feature/#468_access_isosurface_scalar' of devhub.vr.rwth-aachen.de:VR-Group/Project_Phoenix into feature/#468_access_isosurface_scalar
parents 2c8cca33 b5455ec4
No related branches found
No related tags found
1 merge request!161Feature/#468 access isosurface scalar
......@@ -92,7 +92,7 @@ SCENARIO("The mesh component keeps track of its attributes",
for (std::size_t i = 0; i < atts.size(); i++) {
REQUIRE(atts[i].size() == texture_coordinates_copy[i].size());
for (std::size_t j = 0; j < atts.size(); j++) {
REQUIRE(atts[i][j] == texture_coordinates_copy[i][j]);
REQUIRE(atts[i][j] == Approx(texture_coordinates_copy[i][j]));
}
}
}
......
......@@ -59,6 +59,18 @@ SCENARIO("A Model can be loaded that contains multiple meshes",
REQUIRE(model->GetMaterialForMesh(model->GetMeshes()[1]) ==
model->GetMaterials()[1]);
}
THEN("Texture coords are loaded and can be accessed.") {
auto mesh = model->GetMesh("Cube_Cube.001");
auto textureCoords = mesh->GetTextureCoords();
REQUIRE(textureCoords[0][0] == Approx(1));
REQUIRE(textureCoords[0][1] == Approx(0));
REQUIRE(textureCoords[0][2] == Approx(1));
REQUIRE(textureCoords[0][3] == Approx(1));
REQUIRE(textureCoords[0][4] == Approx(0));
REQUIRE(textureCoords[0][5] == Approx(1));
REQUIRE(textureCoords[0][6] == Approx(0));
REQUIRE(textureCoords[0][7] == Approx(0));
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment