Performing a Boolean "union" operation with the same object, while forgetting to pass the appropriate MC_DISPATCH_ENFORCE_GENERAL_POSITION flag.
| 164 | // Performing a Boolean "union" operation with the same object, while forgetting to |
| 165 | // pass the appropriate MC_DISPATCH_ENFORCE_GENERAL_POSITION flag. |
| 166 | UTEST_F(BooleanOperation, selfUnionWithoutGeneralPositionEnforcement) |
| 167 | { |
| 168 | const std::vector<McFloat>& srcMeshVertices = utest_fixture->srcMeshVertices; |
| 169 | const std::vector<McUint32>& meshFaceIndices = utest_fixture->meshFaceIndices; |
| 170 | const std::vector<McUint32>& meshFaceSizes = utest_fixture->meshFaceSizes; |
| 171 | |
| 172 | const McFlags booleanUnionFlags = MC_DISPATCH_FILTER_FRAGMENT_SEALING_OUTSIDE | MC_DISPATCH_FILTER_FRAGMENT_LOCATION_ABOVE; |
| 173 | |
| 174 | ASSERT_EQ(mcDispatch(utest_fixture->myContext, // |
| 175 | MC_DISPATCH_VERTEX_ARRAY_FLOAT | booleanUnionFlags, |
| 176 | &srcMeshVertices[0], &meshFaceIndices[0], &meshFaceSizes[0], (McUint32)(srcMeshVertices.size() / 3), (McUint32)meshFaceSizes.size(), // |
| 177 | &srcMeshVertices[0], &meshFaceIndices[0], &meshFaceSizes[0], (McUint32)(srcMeshVertices.size() / 3), (McUint32)meshFaceSizes.size()), |
| 178 | MC_INVALID_OPERATION); |
| 179 | } |
| 180 | |
| 181 | // Performing a Boolean "union" operation with the same object, while allowing general |
| 182 | // position enforcement. |
nothing calls this directly
no test coverage detected