mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-21 04:15:36 +00:00
update assimp lib
This commit is contained in:
parent
03a348deb7
commit
d3f8fee74e
1725 changed files with 196314 additions and 62009 deletions
|
|
@ -3,7 +3,7 @@
|
|||
Open Asset Import Library (assimp)
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
Copyright (c) 2006-2022, assimp team
|
||||
Copyright (c) 2006-2024, assimp team
|
||||
|
||||
All rights reserved.
|
||||
|
||||
|
|
@ -53,6 +53,11 @@ protected:
|
|||
void checkMesh(const aiMesh &mesh);
|
||||
};
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
static unsigned int foo() {
|
||||
return static_cast<unsigned int>(((float)rand() / static_cast<float>(RAND_MAX)) * 499);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
TEST_F(VTAdjacencyTest, largeRandomDataSet) {
|
||||
// build a test mesh with randomized input data
|
||||
|
|
@ -72,11 +77,8 @@ TEST_F(VTAdjacencyTest, largeRandomDataSet) {
|
|||
if (499 == iCurrent) iCurrent = 0;
|
||||
face.mIndices[0] = iCurrent++;
|
||||
|
||||
while (face.mIndices[0] == (face.mIndices[1] = (unsigned int)(((float)rand() / RAND_MAX) * 499)))
|
||||
;
|
||||
while (face.mIndices[0] == (face.mIndices[2] = (unsigned int)(((float)rand() / RAND_MAX) * 499)) ||
|
||||
face.mIndices[1] == face.mIndices[2])
|
||||
;
|
||||
while (face.mIndices[0] == (face.mIndices[1] = foo()));
|
||||
while (face.mIndices[0] == (face.mIndices[2] = foo()) || face.mIndices[1] == face.mIndices[2]);
|
||||
}
|
||||
|
||||
checkMesh(mesh);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue