unwanted rounding for subtractive cylinder

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: unwanted rounding for subtractive cylinder

Post by kisolre »

Editing the radius from the Tasks panel and then recompute works ok. Then just entering and confirming the Cylinder edit mode rounds the selected values to 2 decimals and assigns those values:

Code: Select all

FreeCAD.getDocument("Cylinder_rounding_issue5250").getObject("Cylinder001").Radius = '1.522 mm'
>>> App.activeDocument().recompute()
>>> Gui.activeDocument().setEdit('Cylinder001',0)
>>> App.ActiveDocument.Cylinder001.Radius=1.52
>>> App.ActiveDocument.Cylinder001.Height=4.00
>>> App.ActiveDocument.Cylinder001.Angle=360.00
>>> 
>>> App.ActiveDocument.recompute()
OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15860 (Git)
Build type: Release
Branch: master
Hash: 3b708c7f84b0425076b520e1d95627b20fd75fe0
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Bulgarian/Bulgaria (bg_BG)
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: unwanted rounding for subtractive cylinder

Post by bejant »

openBrain wrote: Mon Feb 18, 2019 6:23 pm Problem also exists here with 6 decimals.
I quit FreeCAD, started it again, and created a new Sketch from Part Design. Constraints in the 3D view are now whole numbers - I don't even get a decimal point.

I'll edit my previous post.
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: unwanted rounding for subtractive cylinder

Post by wmayer »

User avatar
meme2704
Veteran
Posts: 2926
Joined: Sat Apr 01, 2017 2:47 pm
Location: Vosges

Re: unwanted rounding for subtractive cylinder

Post by meme2704 »

I think the Windows version works as I describe it by supporting the decimals, without rounding, and that the Ubuntu version that is not the same release, bug
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: unwanted rounding for subtractive cylinder

Post by kisolre »

meme2704 wrote: Tue Feb 19, 2019 9:03 am I think the Windows version works as I describe it by supporting the decimals, without rounding, and that the Ubuntu version that is not the same release, bug
Windows here, 3 posts up - decimals are 5, rounds to 2
wmayer wrote: Tue Feb 19, 2019 8:51 am git commit 638845a6f
When should we expect a build?
User avatar
meme2704
Veteran
Posts: 2926
Joined: Sat Apr 01, 2017 2:47 pm
Location: Vosges

Re: unwanted rounding for subtractive cylinder

Post by meme2704 »

Pfffff :!: :mrgreen:
chrisb
Veteran
Posts: 54293
Joined: Tue Mar 17, 2015 9:14 am

Re: unwanted rounding for subtractive cylinder

Post by chrisb »

wmayer wrote: Tue Feb 19, 2019 8:51 am git commit 638845a6f
Are the fields now Expressions-aware?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: unwanted rounding for subtractive cylinder

Post by uwestoehr »

wmayer wrote: Tue Feb 19, 2019 8:51 am git commit 638845a6f
Many thanks! I am very impressed once more how fix things are fixed.
Post Reply