mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 23:23:59 -06:00
Implemented raft support for the wipe tower
https://github.com/prusa3d/Slic3r/issues/324 Implemented a correct layer height preview for the wipe tower layers, if the wipe tower layer height is not constant due to the application of raft.
This commit is contained in:
parent
f9f0940297
commit
89dcd3e8b1
7 changed files with 118 additions and 36 deletions
|
@ -91,6 +91,32 @@ struct SlicingParameters
|
|||
coordf_t object_print_z_max;
|
||||
};
|
||||
|
||||
// The two slicing parameters lead to the same layering as long as the variable layer thickness is not in action.
|
||||
inline bool equal_layering(const SlicingParameters &sp1, const SlicingParameters &sp2)
|
||||
{
|
||||
return sp1.base_raft_layers == sp2.base_raft_layers &&
|
||||
sp1.interface_raft_layers == sp2.interface_raft_layers &&
|
||||
sp1.base_raft_layer_height == sp2.base_raft_layer_height &&
|
||||
sp1.interface_raft_layer_height == sp2.interface_raft_layer_height &&
|
||||
sp1.contact_raft_layer_height == sp2.contact_raft_layer_height &&
|
||||
sp1.contact_raft_layer_height_bridging == sp2.contact_raft_layer_height_bridging &&
|
||||
sp1.layer_height == sp2.layer_height &&
|
||||
sp1.min_layer_height == sp2.min_layer_height &&
|
||||
sp1.max_layer_height == sp2.max_layer_height &&
|
||||
sp1.max_suport_layer_height == sp2.max_suport_layer_height &&
|
||||
sp1.first_print_layer_height == sp2.first_print_layer_height &&
|
||||
sp1.first_object_layer_height == sp2.first_object_layer_height &&
|
||||
sp1.first_object_layer_bridging == sp2.first_object_layer_bridging &&
|
||||
sp1.soluble_interface == sp2.soluble_interface &&
|
||||
sp1.gap_raft_object == sp2.gap_raft_object &&
|
||||
sp1.gap_object_support == sp2.gap_object_support &&
|
||||
sp1.gap_support_object == sp2.gap_support_object &&
|
||||
sp1.raft_base_top_z == sp2.raft_base_top_z &&
|
||||
sp1.raft_interface_top_z == sp2.raft_interface_top_z &&
|
||||
sp1.raft_contact_top_z == sp2.raft_contact_top_z &&
|
||||
sp1.object_print_z_min == sp2.object_print_z_min;
|
||||
}
|
||||
|
||||
typedef std::pair<coordf_t,coordf_t> t_layer_height_range;
|
||||
typedef std::map<t_layer_height_range,coordf_t> t_layer_height_ranges;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue