| 94 | } |
| 95 | |
| 96 | void 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 | |
| 111 | void testGetComponent( void ) |
| 112 | { |
nothing calls this directly
no test coverage detected