Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::FourOptCosts Class Reference
+ Collaboration diagram for Slic3r::FourOptCosts:

Public Member Functions

 FourOptCosts (const ConnectionCost &c1, const ConnectionCost &c2, const ConnectionCost &c3, const ConnectionCost &c4)
 
double operator() (size_t piece_idx, bool flipped) const
 

Private Attributes

const ConnectionCostcosts [4]
 

Detailed Description

Constructor & Destructor Documentation

◆ FourOptCosts()

Slic3r::FourOptCosts::FourOptCosts ( const ConnectionCost c1,
const ConnectionCost c2,
const ConnectionCost c3,
const ConnectionCost c4 
)
inline
1719: costs { &c1, &c2, &c3, &c4 } {}
const ConnectionCost * costs[4]
Definition ShortestPath.cpp:1724

Member Function Documentation

◆ operator()()

double Slic3r::FourOptCosts::operator() ( size_t  piece_idx,
bool  flipped 
) const
inline
1721{ return flipped ? costs[piece_idx]->cost_flipped : costs[piece_idx]->cost; }
double cost_flipped
Definition ShortestPath.cpp:1289
double cost
Definition ShortestPath.cpp:1288

Member Data Documentation

◆ costs

const ConnectionCost* Slic3r::FourOptCosts::costs[4]
private

The documentation for this class was generated from the following file: