mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Building octree based on distance from mesh
This commit is contained in:
parent
42a7f2b1d8
commit
3ac16d9c9c
3 changed files with 125 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
#ifndef slic3r_FillAdaptive_hpp_
|
||||
#define slic3r_FillAdaptive_hpp_
|
||||
|
||||
#include "../AABBTreeIndirect.hpp"
|
||||
|
||||
#include "FillBase.hpp"
|
||||
|
||||
namespace Slic3r {
|
||||
|
@ -46,6 +48,20 @@ protected:
|
|||
Polylines &polylines_out);
|
||||
|
||||
virtual bool no_sort() const { return true; }
|
||||
|
||||
public:
|
||||
static FillAdaptive_Internal::Octree* build_octree(
|
||||
TriangleMesh &triangleMesh,
|
||||
coordf_t line_spacing,
|
||||
const BoundingBoxf3 &printer_volume,
|
||||
const Vec3d &cube_center);
|
||||
|
||||
static void expand_cube(
|
||||
FillAdaptive_Internal::Cube *cube,
|
||||
const std::vector<FillAdaptive_Internal::CubeProperties> &cubes_properties,
|
||||
const Transform3d &rotation_matrix,
|
||||
const AABBTreeIndirect::Tree3f &distanceTree,
|
||||
const TriangleMesh &triangleMesh);
|
||||
};
|
||||
|
||||
} // namespace Slic3r
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue