Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CURA-9860] fix extra support layer when raft is enabled #1834

Merged
merged 4 commits into from Feb 23, 2023

Conversation

rburema
Copy link
Member

@rburema rburema commented Feb 15, 2023

There was an extra layer of support between the raft and the model, even if the air-gap was set to 0.

The reason given to sometimes do it anyway was not valid anymore anyway. (The setting isn't hidden by support now.) This was complicating the search for a bug; it's probably that we calculate one too many layers when a raft is present.

done as part of CURA-9860
The distance between the raft and the first layer should remain the same, regardless of the 'layer 0 overlap', for the settings as currently written. Wrongly compensating it like this leads to it always reporting 1 layer or a gap, even though both the air-gap and the 'layer 0 overlap' are both 0. Just remove it then.

part of CURA-9860
The 1st layer of the model is layer 0. This piece of code assumed layer 0 was part of the raft or the air-gap. Also consolidate if-statements.

done as part of CURA-9860
@github-actions
Copy link
Contributor

github-actions bot commented Feb 15, 2023

Unit Test Results

25 tests  ±0   25 ✔️ ±0   11s ⏱️ -4s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ±0 

Results for commit a5a75fc. ± Comparison against base commit d94ec63.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@casperlamboo casperlamboo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering if this comment still makes sense with the proposed changes

/*!
* \brief Get the height difference between the raft and the bottom of
* layer 1.
*
* This is used for the filler layers because they don't use the
* layer_0_z_overlap.
*/
static coord_t getZdiffBetweenRaftAndLayer1();

src/raft.cpp Outdated Show resolved Hide resolved
Enact reviewer comments.

done as part of CURA-9860
@rburema rburema marked this pull request as ready for review February 22, 2023 14:30
@casperlamboo casperlamboo merged commit 313f094 into 5.3 Feb 23, 2023
@casperlamboo casperlamboo deleted the CURA-9860_fix_extra_support_layer_when_raft branch February 23, 2023 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants