mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	more clang warnings enabled, performance measuring
Succesfull build on mingw-w64 fix sandboxes Mingw fixes and full parallel support tree gen.
This commit is contained in:
		
							parent
							
								
									7d25d8c677
								
							
						
					
					
						commit
						7e0199746e
					
				
					 27 changed files with 1393 additions and 1148 deletions
				
			
		
							
								
								
									
										2
									
								
								sandboxes/slasupporttree/CMakeLists.txt
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								sandboxes/slasupporttree/CMakeLists.txt
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,2 @@
 | 
			
		|||
add_executable(slasupporttree slasupporttree.cpp)
 | 
			
		||||
target_link_libraries(slasupporttree libslic3r ${Boost_LIBRARIES} ${TBB_LIBRARIES} ${Boost_LIBRARIES} ${CMAKE_DL_LIBS})
 | 
			
		||||
							
								
								
									
										42
									
								
								sandboxes/slasupporttree/slasupporttree.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								sandboxes/slasupporttree/slasupporttree.cpp
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,42 @@
 | 
			
		|||
#include <iostream>
 | 
			
		||||
#include <fstream>
 | 
			
		||||
#include <string>
 | 
			
		||||
 | 
			
		||||
#include <libslic3r/libslic3r.h>
 | 
			
		||||
#include <libslic3r/Model.hpp>
 | 
			
		||||
#include <libslic3r/Tesselate.hpp>
 | 
			
		||||
#include <libslic3r/ClipperUtils.hpp>
 | 
			
		||||
#include <libslic3r/SLA/SLAAutoSupports.hpp>
 | 
			
		||||
#include <libslic3r/SLA/SLASupportTree.hpp>
 | 
			
		||||
#include <libslic3r/SLAPrint.hpp>
 | 
			
		||||
#include <libslic3r/MTUtils.hpp>
 | 
			
		||||
 | 
			
		||||
#include <tbb/parallel_for.h>
 | 
			
		||||
#include <tbb/mutex.h>
 | 
			
		||||
#include <future>
 | 
			
		||||
 | 
			
		||||
const std::string USAGE_STR = {
 | 
			
		||||
    "Usage: slasupporttree stlfilename.stl"
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
int main(const int argc, const char *argv[]) {
 | 
			
		||||
    using namespace Slic3r;
 | 
			
		||||
    using std::cout; using std::endl;
 | 
			
		||||
 | 
			
		||||
    if(argc < 2) {
 | 
			
		||||
        cout << USAGE_STR << endl;
 | 
			
		||||
        return EXIT_SUCCESS;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    DynamicPrintConfig config;
 | 
			
		||||
 | 
			
		||||
    Model model = Model::read_from_file(argv[1], &config);
 | 
			
		||||
 | 
			
		||||
    SLAPrint print;
 | 
			
		||||
 | 
			
		||||
    print.apply(model, config);
 | 
			
		||||
    print.process();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    return EXIT_SUCCESS;
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue