![]() |
Prusa Slicer 2.6.0
|
#include <src/libslic3r/Arachne/BeadingStrategy/RedistributeBeadingStrategy.hpp>
Inheritance diagram for Slic3r::Arachne::RedistributeBeadingStrategy:
Collaboration diagram for Slic3r::Arachne::RedistributeBeadingStrategy:Public Member Functions | |
| RedistributeBeadingStrategy (coord_t optimal_width_outer, double minimum_variable_line_ratio, BeadingStrategyPtr parent) | |
| ~RedistributeBeadingStrategy () override=default | |
| Beading | compute (coord_t thickness, coord_t bead_count) const override |
| coord_t | getOptimalThickness (coord_t bead_count) const override |
| coord_t | getTransitionThickness (coord_t lower_bead_count) const override |
| coord_t | getOptimalBeadCount (coord_t thickness) const override |
| coord_t | getTransitioningLength (coord_t lower_bead_count) const override |
| float | getTransitionAnchorPos (coord_t lower_bead_count) const override |
| std::string | toString () const override |
| virtual std::vector< coord_t > | getNonlinearThicknesses (coord_t lower_bead_count) const |
| double | getSplitMiddleThreshold () const |
| double | getTransitioningAngle () const |
Protected Attributes | |
| BeadingStrategyPtr | parent |
| coord_t | optimal_width_outer |
| double | minimum_variable_line_ratio |
| std::string | name |
| coord_t | optimal_width |
| double | wall_split_middle_threshold |
| Optimal bead width, nominal width off the walls in 'ideal' circumstances. | |
| double | wall_add_middle_threshold |
| Threshold when a middle wall should be split into two, as a ratio of the optimal wall width. | |
| coord_t | default_transition_length |
| Threshold when a new middle wall should be added between an even number of walls, as a ratio of the optimal wall width. | |
| double | transitioning_angle |
| The length of the region to smoothly transfer between bead counts. | |
A meta-beading-strategy that takes outer and inner wall widths into account.
The outer wall will try to keep a constant width by only applying the beading strategy on the inner walls. This ensures that this outer wall doesn't react to changes happening to inner walls. It will limit print artifacts on the surface of the print. Although this strategy technically deviates from the original philosophy of the paper. It will generally results in better prints because of a smoother motion and less variation in extrusion width in the outer walls.
If the thickness of the model is less then two times the optimal outer wall width and once the minimum inner wall width it will keep the minimum inner wall at a minimum constant and vary the outer wall widths symmetrical. Until The thickness of the model is that of at least twice the optimal outer wall width it will then use two symmetrical outer walls only. Until it transitions into a single outer wall. These last scenario's are always symmetrical in nature, disregarding the user specified strategy.
| Slic3r::Arachne::RedistributeBeadingStrategy::RedistributeBeadingStrategy | ( | coord_t | optimal_width_outer, |
| double | minimum_variable_line_ratio, | ||
| BeadingStrategyPtr | parent | ||
| ) |
/param optimal_width_outer Outer wall width, guaranteed to be the actual (save rounding errors) at a bead count if the parent strategies' optimum bead width is a weighted average of the outer and inner walls at that bead count. /param minimum_variable_line_ratio Minimum factor that the variable line might deviate from the optimal width.
References Slic3r::Arachne::BeadingStrategy::name.
|
overridedefault |
|
overridevirtual |
Retrieve the bead widths with which to cover a given thickness.
Requirement: Given a constant bead_count the output of each bead width must change gradually along with the thickness.
bead_count might be different from the BeadingStrategy::optimal_bead_count Implements Slic3r::Arachne::BeadingStrategy.
References Slic3r::Arachne::BeadingStrategy::Beading::bead_widths, Slic3r::Arachne::BeadingStrategy::Beading::left_over, minimum_variable_line_ratio, optimal_width_outer, parent, Slic3r::Arachne::BeadingStrategy::Beading::toolpath_locations, and Slic3r::Arachne::BeadingStrategy::Beading::total_thickness.
|
virtualinherited |
Get the locations in a bead count region where BeadingStrategy::compute exhibits a bend in the widths. Ordered from lower thickness to higher.
This is used to insert extra support bones into the skeleton, so that the resulting beads in long trapezoids don't linearly change between the two ends.
Reimplemented in Slic3r::Arachne::WideningBeadingStrategy.
Referenced by Slic3r::Arachne::SkeletalTrapezoidation::generateExtraRibs().
Here is the caller graph for this function:
|
overridevirtual |
The number of beads should we ideally usefor a given model thickness
Implements Slic3r::Arachne::BeadingStrategy.
References minimum_variable_line_ratio, optimal_width_outer, and parent.
|
overridevirtual |
The ideal thickness for a given
| bead_count |
Reimplemented from Slic3r::Arachne::BeadingStrategy.
References optimal_width_outer, and parent.
|
inherited |
References Slic3r::Arachne::BeadingStrategy::wall_split_middle_threshold.
|
overridevirtual |
The fraction of the transition length to put between the lower end of the transition and the point where the unsmoothed bead count jumps.
Transitions are used to smooth out the jumps in integer bead count; the jumps turn into ramps which could be positioned relative to the jump location.
Reimplemented from Slic3r::Arachne::BeadingStrategy.
References parent.
|
inherited |
References Slic3r::Arachne::BeadingStrategy::transitioning_angle.
Referenced by Slic3r::Arachne::SkeletalTrapezoidation::updateIsCentral().
Here is the caller graph for this function:
|
overridevirtual |
The length of the transitioning region along the marked / significant regions of the skeleton.
Transitions are used to smooth out the jumps in integer bead count; the jumps turn into ramps with some incline defined by their length.
Reimplemented from Slic3r::Arachne::BeadingStrategy.
References parent.
|
overridevirtual |
The model thickness at which BeadingStrategy::optimal_bead_count transitions from lower_bead_count to lower_bead_count + 1
Reimplemented from Slic3r::Arachne::BeadingStrategy.
References minimum_variable_line_ratio, optimal_width_outer, and parent.
|
overridevirtual |
Reimplemented from Slic3r::Arachne::BeadingStrategy.
References parent.
|
protectedinherited |
Threshold when a new middle wall should be added between an even number of walls, as a ratio of the optimal wall width.
Referenced by Slic3r::Arachne::BeadingStrategy::getTransitioningLength().
|
protected |
Referenced by compute(), getOptimalBeadCount(), and getTransitionThickness().
|
protectedinherited |
Referenced by Slic3r::Arachne::BeadingStrategy::BeadingStrategy(), Slic3r::Arachne::DistributedBeadingStrategy::DistributedBeadingStrategy(), Slic3r::Arachne::OuterWallInsetBeadingStrategy::OuterWallInsetBeadingStrategy(), RedistributeBeadingStrategy(), and Slic3r::Arachne::BeadingStrategy::toString().
|
protectedinherited |
|
protected |
Referenced by compute(), getOptimalBeadCount(), getOptimalThickness(), and getTransitionThickness().
|
protected |
|
protectedinherited |
The length of the region to smoothly transfer between bead counts.
The maximum angle between outline segments smaller than which we are going to add transitions Equals 180 - the "limit bisector angle" from the paper
Referenced by Slic3r::Arachne::BeadingStrategy::getTransitioningAngle().
|
protectedinherited |
Threshold when a middle wall should be split into two, as a ratio of the optimal wall width.
Referenced by Slic3r::Arachne::DistributedBeadingStrategy::getOptimalBeadCount(), and Slic3r::Arachne::BeadingStrategy::getTransitionThickness().
|
protectedinherited |
Optimal bead width, nominal width off the walls in 'ideal' circumstances.
Referenced by Slic3r::Arachne::DistributedBeadingStrategy::getOptimalBeadCount(), Slic3r::Arachne::BeadingStrategy::getSplitMiddleThreshold(), and Slic3r::Arachne::BeadingStrategy::getTransitionThickness().