mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
A prototype of adaptive support infill
This commit is contained in:
parent
680b1b9809
commit
8fb9b290b2
3 changed files with 126 additions and 0 deletions
|
@ -433,6 +433,7 @@ void PrintObject::generate_support_material()
|
|||
}
|
||||
}
|
||||
|
||||
#define ADAPTIVE_SUPPORT
|
||||
#define ADAPTIVE_SUPPORT_SIMPLE
|
||||
|
||||
std::unique_ptr<FillAdaptive_Internal::Octree> PrintObject::prepare_adaptive_infill_data()
|
||||
|
@ -489,7 +490,11 @@ std::unique_ptr<FillAdaptive_Internal::Octree> PrintObject::prepare_adaptive_inf
|
|||
// Rotate mesh and build octree on it with axis-aligned (standart base) cubes
|
||||
mesh.transform(rotation_matrix);
|
||||
|
||||
#if defined(ADAPTIVE_SUPPORT) && !defined(ADAPTIVE_SUPPORT_SIMPLE)
|
||||
return FillAdaptive::build_octree_for_adaptive_support(mesh, adaptive_line_spacing, rotation_matrix * mesh_origin, rotation_matrix);
|
||||
#else
|
||||
return FillAdaptive::build_octree(mesh, adaptive_line_spacing, rotation_matrix * mesh_origin);
|
||||
#endif
|
||||
}
|
||||
|
||||
void PrintObject::clear_layers()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue