mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 06:38:58 +08:00
libseqarrange: Fix compile errors in Debug mode (PR #14150 by @cryptomilk)
This commit is contained in:
parent
55139f4933
commit
c574d0fd10
@ -1235,7 +1235,7 @@ int schedule_ObjectsForSequentialPrint(const SolverConfiguration
|
||||
#ifdef DEBUG
|
||||
{
|
||||
printf("Polygon positions:\n");
|
||||
for (unsgined int i = 0; i < decided_polygons.size(); ++i)
|
||||
for (unsigned int i = 0; i < decided_polygons.size(); ++i)
|
||||
{
|
||||
printf(" [ID:%d,RID:%d] x:%.3f, y:%.3f (t:%.3f)\n",
|
||||
original_index_map[decided_polygons[i]],
|
||||
|
@ -980,8 +980,8 @@ bool check_PolygonPositionWithinPlate(const SolverConfiguration &solver_configur
|
||||
{
|
||||
printf("x: %d,%d\n", polygon_box.min.x() + x, polygon_box.max.x() + x);
|
||||
printf("y: %d,%d\n", polygon_box.min.y() + y, polygon_box.max.y() + y);
|
||||
printf("X: %d\n", solver_configuration.x_plate_bounding_box_size * scale_factor);
|
||||
printf("Y: %d\n", solver_configuration.y_plate_bounding_box_size * scale_factor);
|
||||
printf("X: %d\n", (solver_configuration.plate_bounding_box.max.x() - solver_configuration.plate_bounding_box.min.x()) * scale_factor);
|
||||
printf("Y: %d\n", (solver_configuration.plate_bounding_box.max.y() - solver_configuration.plate_bounding_box.min.x()) * scale_factor);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -6476,7 +6476,7 @@ std::optional<std::pair<int, int> > check_PointsOutsidePolygons(const std::vecto
|
||||
{
|
||||
#ifdef DEBUG
|
||||
{
|
||||
printf("Levels U %d,%d\n", unreachable_polygons[0].size(), unreachable_polygons[1].size());
|
||||
printf("Levels U %zu,%zu\n", unreachable_polygons[0].size(), unreachable_polygons[1].size());
|
||||
|
||||
int c = 0;
|
||||
string svg_filename = "collision_checking.svg";
|
||||
@ -7007,7 +7007,7 @@ void extract_DecisionValuesFromModel(const z3::model &Model,
|
||||
|
||||
#ifdef DEBUG
|
||||
{
|
||||
printf("saved: %.3f\n", unordered_values_X.back()->as_double());
|
||||
printf("saved: %.3f\n", unordered_values_X.back().as_double());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@ -7023,7 +7023,7 @@ void extract_DecisionValuesFromModel(const z3::model &Model,
|
||||
|
||||
#ifdef DEBUG
|
||||
{
|
||||
printf("saved: %.3f\n", unordered_values_Y.back()->as_double());
|
||||
printf("saved: %.3f\n", unordered_values_Y.back().as_double());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user