![]() |
Prusa Slicer 2.6.0
|
#include <src/libslic3r/Arachne/BeadingStrategy/DistributedBeadingStrategy.hpp>
Inheritance diagram for Slic3r::Arachne::DistributedBeadingStrategy:
Collaboration diagram for Slic3r::Arachne::DistributedBeadingStrategy:Public Member Functions | |
| DistributedBeadingStrategy (coord_t optimal_width, coord_t default_transition_length, double transitioning_angle, double wall_split_middle_threshold, double wall_add_middle_threshold, int distribution_radius) | |
| ~DistributedBeadingStrategy () override=default | |
| Beading | compute (coord_t thickness, coord_t bead_count) const override |
| coord_t | getOptimalBeadCount (coord_t thickness) const override |
| virtual coord_t | getOptimalThickness (coord_t bead_count) const |
| virtual coord_t | getTransitionThickness (coord_t lower_bead_count) const |
| virtual coord_t | getTransitioningLength (coord_t lower_bead_count) const |
| virtual float | getTransitionAnchorPos (coord_t lower_bead_count) const |
| virtual std::vector< coord_t > | getNonlinearThicknesses (coord_t lower_bead_count) const |
| virtual std::string | toString () const |
| double | getSplitMiddleThreshold () const |
| double | getTransitioningAngle () const |
Protected Attributes | |
| float | one_over_distribution_radius_squared |
| 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. | |
This beading strategy chooses a wall count that would make the line width deviate the least from the optimal line width, and then distributes the lines evenly among the thickness available.
| Slic3r::Arachne::DistributedBeadingStrategy::DistributedBeadingStrategy | ( | coord_t | optimal_width, |
| coord_t | default_transition_length, | ||
| double | transitioning_angle, | ||
| double | wall_split_middle_threshold, | ||
| double | wall_add_middle_threshold, | ||
| int | distribution_radius | ||
| ) |
| distribution_radius | the radius (in number of beads) over which to distribute the discrepancy between the feature size and the optimal thickness |
References Slic3r::Arachne::BeadingStrategy::name, and one_over_distribution_radius_squared.
|
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, one_over_distribution_radius_squared, Slic3r::Arachne::BeadingStrategy::optimal_width, 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 Slic3r::Arachne::BeadingStrategy::optimal_width, Slic3r::Arachne::BeadingStrategy::wall_add_middle_threshold, and Slic3r::Arachne::BeadingStrategy::wall_split_middle_threshold.
|
virtualinherited |
The ideal thickness for a given
| bead_count |
Reimplemented in Slic3r::Arachne::LimitedBeadingStrategy, Slic3r::Arachne::OuterWallInsetBeadingStrategy, Slic3r::Arachne::RedistributeBeadingStrategy, and Slic3r::Arachne::WideningBeadingStrategy.
References Slic3r::Arachne::BeadingStrategy::optimal_width.
Referenced by Slic3r::Arachne::BeadingStrategy::getTransitionAnchorPos(), and Slic3r::Arachne::BeadingStrategy::getTransitionThickness().
Here is the caller graph for this function:
|
inherited |
|
virtualinherited |
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 in Slic3r::Arachne::LimitedBeadingStrategy, Slic3r::Arachne::RedistributeBeadingStrategy, and Slic3r::Arachne::WideningBeadingStrategy.
References Slic3r::Arachne::BeadingStrategy::getOptimalThickness(), and Slic3r::Arachne::BeadingStrategy::getTransitionThickness().
Referenced by Slic3r::Arachne::SkeletalTrapezoidation::filterTransitionMids(), and Slic3r::Arachne::SkeletalTrapezoidation::generateTransitionEnds().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inherited |
References Slic3r::Arachne::BeadingStrategy::transitioning_angle.
Referenced by Slic3r::Arachne::SkeletalTrapezoidation::updateIsCentral().
Here is the caller graph for this function:
|
virtualinherited |
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 in Slic3r::Arachne::LimitedBeadingStrategy, Slic3r::Arachne::OuterWallInsetBeadingStrategy, Slic3r::Arachne::RedistributeBeadingStrategy, and Slic3r::Arachne::WideningBeadingStrategy.
References Slic3r::Arachne::BeadingStrategy::default_transition_length.
Referenced by Slic3r::Arachne::SkeletalTrapezoidation::dissolveNearbyTransitions(), Slic3r::Arachne::SkeletalTrapezoidation::filterTransitionMids(), and Slic3r::Arachne::SkeletalTrapezoidation::generateTransitionEnds().
Here is the caller graph for this function:
|
virtualinherited |
The model thickness at which BeadingStrategy::optimal_bead_count transitions from lower_bead_count to lower_bead_count + 1
Reimplemented in Slic3r::Arachne::LimitedBeadingStrategy, Slic3r::Arachne::OuterWallInsetBeadingStrategy, Slic3r::Arachne::RedistributeBeadingStrategy, and Slic3r::Arachne::WideningBeadingStrategy.
References Slic3r::Arachne::BeadingStrategy::getOptimalThickness(), Slic3r::Arachne::BeadingStrategy::wall_add_middle_threshold, and Slic3r::Arachne::BeadingStrategy::wall_split_middle_threshold.
Referenced by Slic3r::Arachne::SkeletalTrapezoidation::generateTransitionMids(), Slic3r::Arachne::BeadingStrategy::getTransitionAnchorPos(), and Slic3r::Arachne::SkeletalTrapezoidation::updateIsCentral().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtualinherited |
|
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().
|
protectedinherited |
Referenced by Slic3r::Arachne::BeadingStrategy::BeadingStrategy(), DistributedBeadingStrategy(), Slic3r::Arachne::OuterWallInsetBeadingStrategy::OuterWallInsetBeadingStrategy(), Slic3r::Arachne::RedistributeBeadingStrategy::RedistributeBeadingStrategy(), and Slic3r::Arachne::BeadingStrategy::toString().
|
protected |
Referenced by DistributedBeadingStrategy(), and compute().
|
protectedinherited |
|
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 getOptimalBeadCount(), and Slic3r::Arachne::BeadingStrategy::getTransitionThickness().
|
protectedinherited |
Optimal bead width, nominal width off the walls in 'ideal' circumstances.
Referenced by getOptimalBeadCount(), Slic3r::Arachne::BeadingStrategy::getSplitMiddleThreshold(), and Slic3r::Arachne::BeadingStrategy::getTransitionThickness().