mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
NEW:Add progress bar for large file loading (3mf,stl,step)
Change-Id: Ic54ca21e8193b15bbda08c22ea2fc4c93b440741
This commit is contained in:
parent
c6fc915164
commit
9c55893954
12 changed files with 130 additions and 38 deletions
|
@ -9,7 +9,7 @@
|
|||
#include "Execution/ExecutionTBB.hpp"
|
||||
#include "Execution/ExecutionSeq.hpp"
|
||||
#include "Utils.hpp"
|
||||
|
||||
#include "Format/STL.hpp"
|
||||
#include <libqhullcpp/Qhull.h>
|
||||
#include <libqhullcpp/QhullFacetList.h>
|
||||
#include <libqhullcpp/QhullVertexSet.h>
|
||||
|
@ -208,10 +208,10 @@ bool TriangleMesh::from_stl(stl_file& stl, bool repair)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool TriangleMesh::ReadSTLFile(const char* input_file, bool repair)
|
||||
bool TriangleMesh::ReadSTLFile(const char* input_file, bool repair, ImportstlProgressFn stlFn)
|
||||
{
|
||||
stl_file stl;
|
||||
if (! stl_open(&stl, input_file))
|
||||
if (! stl_open(&stl, input_file, stlFn))
|
||||
return false;
|
||||
return from_stl(stl, repair);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue