mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 04:55:55 +08:00
Bounding box calculation in the sequential_decimator tool for hand-tailored extruder model construction.
This commit is contained in:
parent
c9b3f29c5b
commit
33aa425b4f
@ -64,14 +64,14 @@ void print_ConcludingMessage(void)
|
||||
void print_Help(void)
|
||||
{
|
||||
printf("Usage:\n");
|
||||
printf("sequential_prusa [--input-file=<string>]\n");
|
||||
printf(" [--output-file=<string>]\n");
|
||||
printf(" [--tolerance=<double>]\n");
|
||||
printf(" [--x-pos=<double> (in mm)]\n");
|
||||
printf(" [--y-pos=<double> (in mm)]\n");
|
||||
printf(" [--x-nozzle=<int> (in coord_t)]\n");
|
||||
printf(" [--y-nozzle=<int> (in coord_t)]\n");
|
||||
printf(" [--help]\n");
|
||||
printf("sequential_decimator [--input-file=<string>]\n");
|
||||
printf(" [--output-file=<string>]\n");
|
||||
printf(" [--tolerance=<double>]\n");
|
||||
printf(" [--x-pos=<double> (in mm)]\n");
|
||||
printf(" [--y-pos=<double> (in mm)]\n");
|
||||
printf(" [--x-nozzle=<int> (in coord_t)]\n");
|
||||
printf(" [--y-nozzle=<int> (in coord_t)]\n");
|
||||
printf(" [--help]\n");
|
||||
printf("\n");
|
||||
printf("\n");
|
||||
printf("Defaults: --input-file=arrange_data_export.txt\n");
|
||||
@ -215,6 +215,13 @@ int decimate_Polygons(const CommandParameters &command_parameters)
|
||||
{
|
||||
cout << " " << point.x() << " " << point.y() << endl;
|
||||
}
|
||||
|
||||
BoundingBox bounding_box = get_extents(shift_polygon);
|
||||
|
||||
cout << " BB" << endl;
|
||||
cout << " " << bounding_box.min.x() << " " << bounding_box.min.y() << endl;
|
||||
cout << " " << bounding_box.max.x() << " " << bounding_box.max.y() << endl;
|
||||
cout << endl;
|
||||
}
|
||||
|
||||
if (command_parameters.output_filename != "")
|
||||
|
@ -139,6 +139,8 @@
|
||||
#include "PresetArchiveDatabase.hpp"
|
||||
#include "BulkExportDialog.hpp"
|
||||
|
||||
#include "ArrangeHelper.hpp"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include "Gizmos/GLGizmosManager.hpp"
|
||||
#endif // __APPLE__
|
||||
|
Loading…
x
Reference in New Issue
Block a user