layers property

int get layers

The number of layers calculated based on the thickness value.

This gives a base of 3 layers, and adds more layers as the thickness increases.

Implementation

int get layers {
  int range = thickness.floor();
  return 3 + (range * 2);
}