-------------------------------------------------------------------------------
| 134 | |
| 135 | // ------------------------------------------------------------------------------- |
| 136 | ai_real ComputePositionEpsilon(const aiMesh *pMesh) { |
| 137 | const ai_real epsilon = ai_real(1e-4); |
| 138 | |
| 139 | // calculate the position bounds so we have a reliable epsilon to check position differences against |
| 140 | aiVector3D minVec, maxVec; |
| 141 | ArrayBounds(pMesh->mVertices, pMesh->mNumVertices, minVec, maxVec); |
| 142 | return (maxVec - minVec).Length() * epsilon; |
| 143 | } |
| 144 | |
| 145 | // ------------------------------------------------------------------------------- |
| 146 | ai_real ComputePositionEpsilon(const aiMesh *const *pMeshes, size_t num) { |
no test coverage detected