Wall thickness in 3D printing is controlled by the number of perimeters printed. Each perimeter adds a fixed width, for example 0.4 mm. The printer starts printing perimeters one by one, checking after each if the total wall thickness meets the target, such as 1.2 mm. When the thickness reaches or exceeds the target, the printer stops adding perimeters and moves on to printing infill or the next layer. This ensures the wall is strong enough without wasting material. If the perimeter width changes, the number of perimeters needed will also change. For example, with a 0.3 mm perimeter width, more perimeters are needed to reach the same thickness.