2.5x speedup of hollowing.
Triangle removal is slightly broken
This commit is contained in:
parent
9e5ba20f8f
commit
1a6a2a0b9a
4 changed files with 55 additions and 13 deletions
|
@ -21,6 +21,8 @@
|
|||
|
||||
#include "I18N.hpp"
|
||||
|
||||
#include <libnest2d/tools/benchmark.h>
|
||||
|
||||
//! macro used to mark string used at localization,
|
||||
//! return same string
|
||||
#define L(s) Slic3r::I18N::translate(s)
|
||||
|
@ -1116,7 +1118,14 @@ double SLAPrint::Steps::progressrange(SLAPrintStep step) const
|
|||
void SLAPrint::Steps::execute(SLAPrintObjectStep step, SLAPrintObject &obj)
|
||||
{
|
||||
switch(step) {
|
||||
case slaposHollowing: hollow_model(obj); break;
|
||||
case slaposHollowing: {
|
||||
Benchmark bench;
|
||||
bench.start();
|
||||
hollow_model(obj);
|
||||
bench.stop();
|
||||
std::cout << "Hollowing took " << bench.getElapsedSec() << " seconds" << std::endl;
|
||||
break;
|
||||
}
|
||||
case slaposDrillHoles: drill_holes(obj); break;
|
||||
case slaposObjectSlice: slice_model(obj); break;
|
||||
case slaposSupportPoints: support_points(obj); break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue