Print at Dec 16, 2025, 5:21:29 AM

Posted by Puybaret at Mar 18, 2024, 12:08:09 PM
Re: Wall paint with step size.
You may change this value by returning a different value in the getMagnetizedLength method of the length unit(s) you want to use (like in LengthUnit.INCH#getMagnetizedLength). Replacing precision by 0.6f in the computing of magnetizedLength in getMagnetizedInchLength will do it in your case.
Keep in mind that length value are stored in centimeters so you'll have to return inches converted to centimeters. Note also that this rounding is used only when magnetism is active, is also applied to some other measured lengths like room sides and depends on the zoom factor in the plan in the current implementation.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator