Re: [Sailcut-users] Sailcut program - dimension change
Brought to you by:
jeremy_laine,
sailcuter
|
From: Robert L. <rob...@sa...> - 2017-03-19 14:22:16
|
Dear All, I suggest that 4 decimals is more than enough. On 1 square meter area it is 1 square centimeter accuracy. I am going to update sailcut with that as soon as I have a Windows compiler... Meanwhile you can tweak the code. Regards, Robert LAINÉ On 15/03/2017 23:11, pa...@tm... wrote: > On Wed, 15 Mar 2017 22:40:12 +0100 > Miroslav <mi...@gm...> wrote: > >> Don, this is exactly what I want to say for the sail area, I need more precision and more decimals and no matter in what scale, meter or centimetres are. > Hi, > > You could always modify the program to suit your needs. That's the beauty of open source :) The area value is rounded in the last line of the Area() method of sailworker.cpp. If you change it from > > return ( .01 * floor(surface /10000) ); > > to > > return ( .0001 * floor(surface /100) ); > > that would give you 2 extra digits of precision - 4 in total. If that's not enough, changing it to > > return ( .000001 * floor(surface )); > > would give you 6 digits of precision. > > Hope this helps > |