Skip to content

Commit 393fb1b

Browse files
committed
Fix wrong labelling of back and belly stresses in the stress plot
1 parent 4717b99 commit 393fb1b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

gui/source/post/StressPlot.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,16 @@ void StressPlot::updateStresses() {
6060
this->graph(2*iLayer+1)->data()->clear();
6161

6262
for(size_t iLength = 0; iLength < common.limb.length.size(); ++iLength) {
63+
// Back
6364
this->graph(2*iLayer)->addData(
6465
quantity_length.getUnit().fromBase(common.limb.length[iLength]),
65-
quantity_stress.getUnit().fromBase(std::get<0>(states.layer_stress[index][iLayer][iLength]))
66+
quantity_stress.getUnit().fromBase(std::get<1>(states.layer_stress[index][iLayer][iLength]))
6667
);
68+
69+
// Belly
6770
this->graph(2*iLayer+1)->addData(
6871
quantity_length.getUnit().fromBase(common.limb.length[iLength]),
69-
quantity_stress.getUnit().fromBase(std::get<1>(states.layer_stress[index][iLayer][iLength]))
72+
quantity_stress.getUnit().fromBase(std::get<0>(states.layer_stress[index][iLayer][iLength]))
7073
);
7174
}
7275
}

0 commit comments

Comments
 (0)