Refactoring of adaptive cubic infill:

Don't create an octree for the infill if it is not needed.
This commit is contained in:
Vojtech Bubnik 2020-09-09 15:55:06 +02:00
parent 97e62be902
commit 7b318e1698
3 changed files with 100 additions and 38 deletions

View file

@ -7,6 +7,8 @@
namespace Slic3r {
class PrintObject;
namespace FillAdaptive_Internal
{
struct CubeProperties
@ -82,6 +84,12 @@ public:
int depth);
};
// Calculate line spacing for
// 1) adaptive cubic infill
// 2) adaptive internal support cubic infill
// Returns zero for a particular infill type if no such infill is to be generated.
std::pair<double, double> adaptive_fill_line_spacing(const PrintObject &print_object);
} // namespace Slic3r
#endif // slic3r_FillAdaptive_hpp_