MCPcopy Create free account
hub / github.com/cutdigital/mcut / UTEST_F

Function UTEST_F

tests/source/booleanOperation.cpp:166–179  ·  view source on GitHub ↗

Performing a Boolean "union" operation with the same object, while forgetting to pass the appropriate MC_DISPATCH_ENFORCE_GENERAL_POSITION flag.

Source from the content-addressed store, hash-verified

164// Performing a Boolean "union" operation with the same object, while forgetting to
165// pass the appropriate MC_DISPATCH_ENFORCE_GENERAL_POSITION flag.
166UTEST_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.

Callers

nothing calls this directly

Calls 2

mcDispatchFunction · 0.85
mcGetConnectedComponentsFunction · 0.85

Tested by

no test coverage detected