Skip to content

Conversation

@NOVAXIM
Copy link
Contributor

@NOVAXIM NOVAXIM commented Aug 17, 2025

Explanation

These changes are intended to calculate the correct number of layers when slicing a model before printing. This only works in specific scenario where the Initial Layer Height is different than the Layer Height. In addition to the correct calculation, we obtain the correct layers result on the slider.

Note

Most users don't notice the issue because Initial Bottom Layers is not shown by default (even in Expert settings) and even fewer users check these values.

Important

Please note that the calculation of the number of layers is always based on the layer thickness value.

Description of changes

  1. The formula for calculating the number of Initial Bottom Layers shows the correct values finally.
  2. the formula "* 30 / 60" is easier to write as "/ 2"
  3. the formula "/ 60 * 30" is easier to write as "/ 2"

Type of change

[ ✓ ] Correcting calculation
[ ✓ ] Cleanup

How Has This Been Tested?

[ ✓ ] On my beloved CASIO fx-991ES calculator :-D
[ ✓ ] Working well with Cura version 5.10.2 and previous.

1727) The formula for calculating the number of initial layers shows the correct values finally.
3707) "* 30 / 60" It should be divided by 2.
7211) "/ 60 * 30" It should be divided by 2.
@github-actions github-actions bot added the PR: Community Contribution 👑 Community Contribution PR's label Aug 17, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Aug 17, 2025

Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ❌ ±0 

Results for commit 1862db6. ± Comparison against base commit d980d28.

♻️ This comment has been updated with latest results.

@NOVAXIM NOVAXIM changed the title NOVAXIM patch 1 fdmprinter.def.json - improved calculation and cleanup Aug 18, 2025
@NOVAXIM NOVAXIM changed the title fdmprinter.def.json - improved calculation and cleanup fdmprinter.def.json - correcting calculation & cleanup Aug 18, 2025
@NOVAXIM NOVAXIM changed the title fdmprinter.def.json - correcting calculation & cleanup Update & cleanup (fdmprinter.def.json) Oct 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Community Contribution 👑 Community Contribution PR's

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant