OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::ArrangeParams Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Arrange.hpp>

Collaboration diagram for Slic3r::ArrangeParams:

Public Member Functions

 ArrangeParams ()=default
 ArrangeParams (coord_t md)
std::string to_json () const

Public Attributes

coord_t min_obj_distance = 0
 The minimum distance which is allowed for any pair of items on the print bed in any direction.
float accuracy = 1.f
 The accuracy of optimization. Goes from 0.0 to 1.0 and scales performance as well.
bool parallel = true
 Allow parallel execution.
bool allow_rotations = false
bool do_final_align = true
bool allow_multi_materials_on_same_plate = true
bool avoid_extrusion_cali_region = true
bool is_seq_print = false
bool align_to_y_axis = false
float bed_shrink_x = 1
float bed_shrink_y = 1
float brim_skirt_distance = 0
float clearance_height_to_rod = 0
float clearance_height_to_lid = 0
float clearance_radius = 0
float object_skirt_offset = 0
float nozzle_height = 0
float printable_height = 256.0
Vec2d align_center { 0.5,0.5 }
bool is_belt = false
int belt_axis = 1
bool belt_reversed = false
float belt_tilt_slope = 1.f
ArrangePolygons excluded_regions
ArrangePolygons nonprefered_regions
std::function< void(unsigned, std::string)> progressind
 Progress indicator callback called when an object gets packed. The unsigned argument is the number of items remaining to pack.
std::function< void(const ArrangePolygon &)> on_packed
std::function< bool(void)> stopcondition
 A predicate returning true if abort is needed.

Detailed Description

Constructor & Destructor Documentation

◆ ArrangeParams() [1/2]

◆ ArrangeParams() [2/2]

183: min_obj_distance(md) {}
coord_t min_obj_distance
The minimum distance which is allowed for any pair of items on the print bed in any direction.
Definition Arrange.hpp:132

Member Function Documentation

◆ to_json()

std::string Slic3r::arrangement::ArrangeParams::to_json ( ) const
inline
185 {
186 std::string ret = "{";
187 ret += "\"min_obj_distance\":" + std::to_string(min_obj_distance) + ",";
188 ret += "\"accuracy\":" + std::to_string(accuracy) + ",";
189 ret += "\"parallel\":" + std::to_string(parallel) + ",";
190 ret += "\"allow_rotations\":" + std::to_string(allow_rotations) + ",";
191 ret += "\"do_final_align\":" + std::to_string(do_final_align) + ",";
192 ret += "\"allow_multi_materials_on_same_plate\":" + std::to_string(allow_multi_materials_on_same_plate) + ",";
193 ret += "\"avoid_extrusion_cali_region\":" + std::to_string(avoid_extrusion_cali_region) + ",";
194 ret += "\"is_seq_print\":" + std::to_string(is_seq_print) + ",";
195 ret += "\"bed_shrink_x\":" + std::to_string(bed_shrink_x) + ",";
196 ret += "\"bed_shrink_y\":" + std::to_string(bed_shrink_y) + ",";
197 ret += "\"brim_skirt_distance\":" + std::to_string(brim_skirt_distance) + ",";
198 ret += "\"clearance_height_to_rod\":" + std::to_string(clearance_height_to_rod) + ",";
199 ret += "\"clearance_height_to_lid\":" + std::to_string(clearance_height_to_lid) + ",";
200 ret += "\"clearance_radius\":" + std::to_string(clearance_radius) + ",";
201 ret += "\"printable_height\":" + std::to_string(printable_height) + ",";
202 return ret;
203 }
float printable_height
Definition Arrange.hpp:158
float bed_shrink_y
Definition Arrange.hpp:151
coord_t min_obj_distance
The minimum distance which is allowed for any pair of items on the print bed in any direction.
Definition Arrange.hpp:132
float clearance_radius
Definition Arrange.hpp:155
float bed_shrink_x
Definition Arrange.hpp:150
float clearance_height_to_lid
Definition Arrange.hpp:154
bool avoid_extrusion_cali_region
Definition Arrange.hpp:147
float brim_skirt_distance
Definition Arrange.hpp:152
bool is_seq_print
Definition Arrange.hpp:148
bool do_final_align
Definition Arrange.hpp:143
float accuracy
The accuracy of optimization. Goes from 0.0 to 1.0 and scales performance as well.
Definition Arrange.hpp:136
bool allow_rotations
Definition Arrange.hpp:141
bool parallel
Allow parallel execution.
Definition Arrange.hpp:139
bool allow_multi_materials_on_same_plate
Definition Arrange.hpp:146
float clearance_height_to_rod
Definition Arrange.hpp:153

Member Data Documentation

◆ accuracy

The accuracy of optimization. Goes from 0.0 to 1.0 and scales performance as well.

◆ align_center

◆ align_to_y_axis

◆ allow_multi_materials_on_same_plate

◆ allow_rotations

◆ avoid_extrusion_cali_region

◆ bed_shrink_x

◆ bed_shrink_y

◆ belt_axis

◆ belt_reversed

◆ belt_tilt_slope

◆ brim_skirt_distance

◆ clearance_height_to_lid

◆ clearance_height_to_rod

◆ clearance_radius

◆ do_final_align

◆ excluded_regions

◆ is_belt

◆ is_seq_print

◆ min_obj_distance

The minimum distance which is allowed for any pair of items on the print bed in any direction.

◆ nonprefered_regions

◆ nozzle_height

◆ object_skirt_offset

◆ on_packed

◆ parallel

Allow parallel execution.

◆ printable_height

◆ progressind

std::function<void(unsigned, std::string)> Slic3r::arrangement::ArrangeParams::progressind
Initial value:
= [](unsigned st, std::string str = "") {
std::cout << "st=" << st << ", " << str << std::endl;
}

Progress indicator callback called when an object gets packed. The unsigned argument is the number of items remaining to pack.

173 {
174 std::cout << "st=" << st << ", " << str << std::endl;
175 };

◆ stopcondition

A predicate returning true if abort is needed.


The documentation for this struct was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Arrange.hpp