Skip to content

Commit 506cc8b

Browse files
committed
Code cleaning
CURA-12580
1 parent 4177843 commit 506cc8b

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/MeshMaterialSplitter.cpp

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ boost::concurrent_flat_set<uint8_t> makeVoxelGridFromTexture(
153153
* Then we just have to extrude those polygons vertically. The final mesh has no horizontal face, thus it is not watertight at all. However, since it will subsequently
154154
* be re-sliced on XY planes, this is good enough.
155155
*/
156-
std::map<uint8_t, Mesh> makeMeshesFromVoxelsGrid(const VoxelGrid& voxel_grid, const uint8_t ignore_value, const Mesh& input_mesh, const bool use_value_as_extruder_nr)
156+
std::map<uint8_t, Mesh> makeMeshesFromVoxelsGrid(const VoxelGrid& voxel_grid, const uint8_t ignore_value, const bool use_value_as_extruder_nr)
157157
{
158158
spdlog::debug("Make modifier meshes from voxels grid");
159159

@@ -316,7 +316,7 @@ std::map<uint8_t, Mesh> makeMeshesFromVoxelsGrid(const VoxelGrid& voxel_grid, co
316316
#ifdef __cpp_lib_execution
317317
std::execution::par,
318318
#endif
319-
[&simplifier, &voxel_grid, &meshes, &mutex, &input_mesh, &use_value_as_extruder_nr](const auto& contour)
319+
[&simplifier, &voxel_grid, &meshes, &mutex, &use_value_as_extruder_nr](const auto& contour)
320320
{
321321
const uint16_t z = contour.first.definition.z;
322322
const uint8_t value = contour.first.definition.value;
@@ -595,12 +595,7 @@ void propagateVoxels(
595595

596596
/*!
597597
* Generate a modifier mesh for every extruder other than 0, that has some user-painted texture data
598-
<<<<<<< HEAD
599-
* @param mesh The mesh being sliced
600-
* @param mesh_bounding_box The bounding box of the mesh, right ?
601-
=======
602598
* @param mesh_data The generation data for the mesh to be processed
603-
>>>>>>> origin/main
604599
* @param texture_data_provider The provider containing the texture painted data
605600
* @param delta_iterations The number of already processed iterations over the total, for progress reporting
606601
* @param total_estimated_iterations The total number of iterations to be processed, for progress reporting
@@ -680,7 +675,7 @@ std::vector<Mesh> makeMaterialModifierMeshes(
680675
total_estimated_iterations);
681676

682677
constexpr bool use_value_as_extruder_nr = true;
683-
std::map<uint8_t, Mesh> meshes = makeMeshesFromVoxelsGrid(voxel_grid, mesh_extruder_nr, mesh_data.mesh, use_value_as_extruder_nr);
678+
std::map<uint8_t, Mesh> meshes = makeMeshesFromVoxelsGrid(voxel_grid, mesh_extruder_nr, use_value_as_extruder_nr);
684679
return applyMeshExtruders(meshes);
685680
}
686681

@@ -702,7 +697,7 @@ std::vector<Mesh> makeSupportModifierMeshes(const Mesh& mesh, const AABB3D& mesh
702697

703698
constexpr uint8_t ignore_value = 0;
704699
constexpr bool use_value_as_extruder_nr = false;
705-
std::map<uint8_t, Mesh> meshes = makeMeshesFromVoxelsGrid(voxel_grid, ignore_value, mesh, use_value_as_extruder_nr);
700+
std::map<uint8_t, Mesh> meshes = makeMeshesFromVoxelsGrid(voxel_grid, ignore_value, use_value_as_extruder_nr);
706701
return applyMeshSupport(meshes);
707702
}
708703

0 commit comments

Comments
 (0)