Skip to content

Commit b63ce93

Browse files
committed
add surface texture option tests
1 parent 03621ef commit b63ce93

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/src/surface_mesh_test.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ TEST_F(PolyscopeTest, SurfaceMeshColorTexture) {
202202
psMesh->addTextureColorQuantity("tColor", *qParam, dimX, dimY, colorsTex, polyscope::ImageOrigin::UpperLeft);
203203
qColor->setEnabled(true);
204204

205+
polyscope::show(3);
206+
207+
// test options
208+
qColor->setFilterMode(polyscope::FilterMode::Nearest);
209+
polyscope::show(3);
210+
205211
// make sure the by-name adder also works
206212
polyscope::SurfaceTextureColorQuantity* qColor2 =
207213
psMesh->addTextureColorQuantity("tColor2", "param", dimX, dimY, colorsTex, polyscope::ImageOrigin::UpperLeft);
@@ -298,6 +304,11 @@ TEST_F(PolyscopeTest, SurfaceMeshScalarTexture) {
298304
polyscope::SurfaceTextureScalarQuantity* qScalar =
299305
psMesh->addTextureScalarQuantity("tScalar", *qParam, dimX, dimY, valuesTex, polyscope::ImageOrigin::UpperLeft);
300306
qScalar->setEnabled(true);
307+
polyscope::show(3);
308+
309+
// test options
310+
qScalar->setFilterMode(polyscope::FilterMode::Nearest);
311+
polyscope::show(3);
301312

302313
// make sure the by-name adder also works
303314
polyscope::SurfaceTextureScalarQuantity* qScalar2 =

0 commit comments

Comments
 (0)