MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / testLargestComponent

Function testLargestComponent

source/MRTestC2/MRMeshComponents.c:96–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void testLargestComponent( void )
97{
98 CreatedMesh m = createMesh();
99
100 int smallerComponents = 0;
101 MR_FaceBitSet* largestComponent = MR_MeshComponents_getLargestComponent( m.part, NULL, NULL, &(float){0.1f}, &smallerComponents );
102 TEST_ASSERT( MR_FaceBitSet_test( largestComponent, (MR_FaceId){0} ) );
103 TEST_ASSERT( !MR_FaceBitSet_test( largestComponent, (MR_FaceId){12} ) );
104 TEST_ASSERT( smallerComponents == 1 );
105
106 MR_FaceBitSet_Destroy( largestComponent );
107
108 destroyMesh( m );
109}
110
111void testGetComponent( void )
112{

Callers

nothing calls this directly

Calls 2

createMeshFunction · 0.85
destroyMeshFunction · 0.85

Tested by

no test coverage detected