mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-07 00:13:38 +02:00
connect progress callback
This commit is contained in:
parent
0647f5b2d0
commit
7d7c991447
2 changed files with 3 additions and 4 deletions
|
@ -424,7 +424,7 @@ void vhacd::ProgressCallback::Update(const double overallProgress,
|
|||
int progress = (int)(overallProgress + 0.5);
|
||||
|
||||
std::cout << "\b\b\b";
|
||||
std::cout << progress << "%";
|
||||
std::cout << progress << "%" << std::flush;
|
||||
if (progress >= 100) {
|
||||
std::cout << std::endl;
|
||||
}
|
||||
|
|
|
@ -329,10 +329,10 @@ VHACDUtilApp::VHACDUtilApp(int argc, char* argv[]) :
|
|||
|
||||
if (generateHulls) {
|
||||
VHACD::IVHACD::Parameters params;
|
||||
vhacd::ProgressCallback pCallBack;
|
||||
vhacd::ProgressCallback progressCallback;
|
||||
|
||||
//set parameters for V-HACD
|
||||
params.m_callback = &pCallBack; //progress callback
|
||||
params.m_callback = &progressCallback; //progress callback
|
||||
params.m_resolution = vHacdResolution;
|
||||
params.m_depth = vHacdDepth;
|
||||
params.m_concavity = vHacdConcavity;
|
||||
|
@ -346,7 +346,6 @@ VHACDUtilApp::VHACDUtilApp(int argc, char* argv[]) :
|
|||
params.m_mode = 0; // 0: voxel-based (recommended), 1: tetrahedron-based
|
||||
params.m_maxNumVerticesPerCH = vHacdMaxVerticesPerCH;
|
||||
params.m_minVolumePerCH = 0.0001; // 0.0001
|
||||
params.m_callback = 0; // 0
|
||||
params.m_logger = 0; // 0
|
||||
params.m_convexhullApproximation = true; // true
|
||||
params.m_oclAcceleration = true; // true
|
||||
|
|
Loading…
Reference in a new issue