Skip to content

Commit 934a8ac

Browse files
committed
Added test for Tree signature convertPointsToMask methods
Signed-off-by: Nick Avramoussis <[email protected]>
1 parent 4b3f1b8 commit 934a8ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

openvdb/openvdb/unittest/TestPointMask.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ TEST_F(TestPointMask, testMask)
5050

5151
EXPECT_EQ(points->tree().activeVoxelCount(), Index64(4));
5252
EXPECT_EQ(mask->tree().activeVoxelCount(), Index64(4));
53+
54+
// also test tree function signature
55+
auto maskTree = convertPointsToMask(points->tree());
56+
EXPECT_EQ(maskTree->activeVoxelCount(), Index64(4));
57+
EXPECT_TRUE(maskTree->hasSameTopology(mask->tree()));
5358
}
5459

5560
{ // mask grid instead of bool grid

0 commit comments

Comments
 (0)