mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Change to using raw_mesh instead of mesh
This commit is contained in:
parent
000987451a
commit
acedb66cdc
1 changed files with 7 additions and 4 deletions
|
@ -447,11 +447,14 @@ std::unique_ptr<FillAdaptive_Internal::Octree> PrintObject::prepare_adaptive_inf
|
||||||
|
|
||||||
coordf_t line_spacing = infill_extrusion_width / ((fill_density / 100.0f) * 0.333333333f);
|
coordf_t line_spacing = infill_extrusion_width / ((fill_density / 100.0f) * 0.333333333f);
|
||||||
|
|
||||||
// Center of the first cube in octree
|
TriangleMesh mesh = this->model_object()->raw_mesh();
|
||||||
Vec3d model_center = this->model_object()->bounding_box().center();
|
mesh.transform(m_trafo, true);
|
||||||
|
// Apply XY shift
|
||||||
|
mesh.translate(- unscale<float>(m_center_offset.x()), - unscale<float>(m_center_offset.y()), 0);
|
||||||
|
|
||||||
TriangleMesh mesh = this->model_object()->mesh();
|
// Center of the first cube in octree
|
||||||
return FillAdaptive::build_octree(mesh, line_spacing, model_center);
|
Vec3d mesh_origin = mesh.bounding_box().center();
|
||||||
|
return FillAdaptive::build_octree(mesh, line_spacing, mesh_origin);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PrintObject::clear_layers()
|
void PrintObject::clear_layers()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue