transformations in PartDesign in 0.17
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
transformations in PartDesign in 0.17
Hello,
I experience some frustration with transformations in PartDesign in current 0.17 . At first I thougth I am doing somthing wrong but now I have tested the same workflow in 0.16 and there everthing is working.
Basically, I want to mirror a PartDesign Pad.
EDIT: this is just one example!
Here is what I have done in some pics:
Creating a sketch and padding it Trying to mirror it Note that the shown phantom is wrong ; its flipped upside down on the sketching plane and also mirrored on the horizontal axis not the vertical one as selected. Custom reference selection does not help here.
Here is the same thing in 0.16 I did not find a related bug in the tracker when searching in PartDesing for Transformation or Mirror. Is this really not reported yet? Should I do it?
Thanks in advance?
BR,
HoWil
OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10680 (Git)
Build type: None
Branch: master
Hash: add9bf910bbb37c35738b01d38c7fe28b75fb8e3
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6453 (Git)
Build type: None
Branch: master
Hash: a3209e1aee00730d13359eeed595cb93b6b127f9
Python version: 2.7.11
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
I experience some frustration with transformations in PartDesign in current 0.17 . At first I thougth I am doing somthing wrong but now I have tested the same workflow in 0.16 and there everthing is working.
Basically, I want to mirror a PartDesign Pad.
EDIT: this is just one example!
Here is what I have done in some pics:
Creating a sketch and padding it Trying to mirror it Note that the shown phantom is wrong ; its flipped upside down on the sketching plane and also mirrored on the horizontal axis not the vertical one as selected. Custom reference selection does not help here.
Here is the same thing in 0.16 I did not find a related bug in the tracker when searching in PartDesing for Transformation or Mirror. Is this really not reported yet? Should I do it?
Thanks in advance?
BR,
HoWil
OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10680 (Git)
Build type: None
Branch: master
Hash: add9bf910bbb37c35738b01d38c7fe28b75fb8e3
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6453 (Git)
Build type: None
Branch: master
Hash: a3209e1aee00730d13359eeed595cb93b6b127f9
Python version: 2.7.11
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
- kkremitzki
- Veteran
- Posts: 2517
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: transformations in PartDesign in 0.17
Yeah, that certainly seems like a bug. I can take a look now.
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: transformations in PartDesign in 0.17
I've seen that too, but with primitives. I thought this was caused by special way their placement work, but from this post it looks like it's broken even more.
Re: transformations in PartDesign in 0.17
Here the two demo files in the hope it will give some insight.
ps.: the 0.17 is now
OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10686 (Git)
Build type: None
Branch: master
Hash: a253af0b9fb24d5b765d2d86a6adb9d6744991e6
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
BR HoWilps.: the 0.17 is now
OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10686 (Git)
Build type: None
Branch: master
Hash: a253af0b9fb24d5b765d2d86a6adb9d6744991e6
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Re: transformations in PartDesign in 0.17
Shall I file a but ticket?kkremitzki wrote:Yeah, that certainly seems like a bug. I can take a look now.
BR,
HoWil
- kkremitzki
- Veteran
- Posts: 2517
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: transformations in PartDesign in 0.17
No need, I can create one.HoWil wrote:Shall I file a but ticket?kkremitzki wrote:Yeah, that certainly seems like a bug. I can take a look now.
BR,
HoWil
Just to update, I spent some time looking at PartDesign::Mirrored but didn't have any luck with a C++ resolution. I figured it would be useful to write a test which passes on 0.16 and fails on 0.17 for this bug. Here it is: https://github.com/kkremitzki/FreeCAD/c ... 591b41ef1d
If you add PartDesignMirroredTestCases to TestPartDesignApp.py in a 0.16 build, as well as an "import Part" at the beginning, you can run TestPartDesignApp from the Self-test button in the Test WB and see that it passes. Adding the class in 0.17 results in a failing test. It makes a cube with unit volume and then tests for the mirrored 2-cube to have volume > 1. It would probably be better though to test something like abs(Mirrored.Shape.Volume - 2) < "machine epsilon". I think I saw something like that available in the C++ side of FreeCAD.
This was just for learning purposes since a 0.16-friendly test makes no sense to add to master, but it does raise a question about committing tests which are known to fail because of a buggy tool. Won't that be annoying to look at in the CI for example? Or is that the point
Re: transformations in PartDesign in 0.17
A failing test should not be added to master, as this woul dbreak the whole CI chain and makes life very hard for the guys merging pull requests (as they don't see anymore if the pullrequest breaks the build)but it does raise a question about committing tests which are known to fail because of a buggy tool. Won't that be annoying to look at in the CI for example? Or is that the point
A failing test should be used to start of a bugfix and after the fix shouldpass. It will than be commited together with the fix to master to prevent any regression on the fixed behavior.
- kkremitzki
- Veteran
- Posts: 2517
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: transformations in PartDesign in 0.17
Ah, of course, that makes sense. Thanks.ickby wrote:A failing test should not be added to master, as this woul dbreak the whole CI chain and makes life very hard for the guys merging pull requests (as they don't see anymore if the pullrequest breaks the build)but it does raise a question about committing tests which are known to fail because of a buggy tool. Won't that be annoying to look at in the CI for example? Or is that the point
A failing test should be used to start of a bugfix and after the fix shouldpass. It will than be commited together with the fix to master to prevent any regression on the fixed behavior.
- kkremitzki
- Veteran
- Posts: 2517
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: transformations in PartDesign in 0.17
Finally created an issue to keep track of this: https://www.freecadweb.org/tracker/view.php?id=3006
Re: transformations in PartDesign in 0.17
I can confirm the behaviour. What is interesting part-design mirroring was working fine some time ago in 0.17. Will try to find the version which broke it and report here.
Best
Using latest daily build 20170420 on Ubuntu 17.04
Best
Using latest daily build 20170420 on Ubuntu 17.04