mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 16:58:09 +02:00
Clean up coding standard violations
This commit is contained in:
parent
93106be466
commit
d4367924ad
1 changed files with 24 additions and 17 deletions
|
@ -40,8 +40,9 @@ bool vhacd::VHACDUtil::loadFBX(const QString filename, vhacd::LoadFBXResults *re
|
|||
}
|
||||
|
||||
//only read meshes with triangles
|
||||
if (triangles.count() <= 0)
|
||||
if (triangles.count() <= 0){
|
||||
continue;
|
||||
}
|
||||
results->perMeshVertices.append(vertices);
|
||||
results->perMeshTriangleIndices.append(triangles);
|
||||
count++;
|
||||
|
@ -92,12 +93,15 @@ bool vhacd::VHACDUtil::computeVHACD(vhacd::LoadFBXResults *meshes, VHACD::IVHACD
|
|||
interfaceVHACD->Clean();
|
||||
interfaceVHACD->Release();
|
||||
|
||||
if (count > 0)
|
||||
if (count > 0){
|
||||
return true;
|
||||
else
|
||||
}
|
||||
else{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
vhacd::VHACDUtil:: ~VHACDUtil(){
|
||||
//nothing to be cleaned
|
||||
}
|
||||
|
@ -107,15 +111,18 @@ void vhacd::ProgressCallback::Update(const double overallProgress, const double
|
|||
const char * const stage, const char * const operation){
|
||||
int progress = (int)(overallProgress + 0.5);
|
||||
|
||||
if (progress < 10)
|
||||
if (progress < 10){
|
||||
std::cout << "\b\b";
|
||||
else
|
||||
}
|
||||
else{
|
||||
std::cout << "\b\b\b";
|
||||
}
|
||||
|
||||
std::cout << progress << "%";
|
||||
|
||||
if (progress >= 100)
|
||||
if (progress >= 100){
|
||||
std::cout << std::endl;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
vhacd::ProgressCallback::ProgressCallback(void){}
|
||||
|
|
Loading…
Reference in a new issue