PDN: Polar array issue

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!
abdullah
Posts: 3583
Joined: Sun May 04, 2014 3:16 pm

PDN: Polar array issue

Postby abdullah » Tue Jun 20, 2017 10:59 am

I was approached with a request to make a bolt with FC. I did not get far without finding an issue, probably a bug.
Heros_bolt_transf_failed.fcstd
(14.37 KiB) Downloaded 22 times
polar_bug.png
polar_bug.png (64.26 KiB) Viewed 1200 times
When I try to transform the slot into a polar array it fails. I would say it is a bug, but I post here just in case I am doing something very stupid without realising.

Then I said, well as a work around lets do a multi-transform with mirror...
mirror_nonormalaxis.png
mirror_nonormalaxis.png (58.44 KiB) Viewed 1200 times
But a mirror multi-transform does not allow to select axis normal to the sketch (I still prefer the "plane" terminology, but given that horizontal and vertical axes are used in the other options, I keep with normal). Shouldn't it be an option there? (feature request) I mean, the non-multi-transform, so the normal mirror has indeed planes:
mirror_YZ_failure.png
mirror_YZ_failure.png (81.31 KiB) Viewed 1200 times
Although the result is worthless. So another bug?

Ok, let's get more imaginative...

Make a datum line on the z axis and try to use it for the multi-transform with mirror: Selection not allowed by filter. (BTW, pressing cancel after that crashed Freecad)

Just let me know what is reproducible so that we can produce bug reports and feature requests to make this usable ;)
hinckel
Posts: 84
Joined: Fri Nov 21, 2014 11:45 am
Location: SJCAMPOS, SP - BR

Re: PDN: Polar array issue

Postby hinckel » Tue Jun 20, 2017 11:47 am

Maybe this is what you meant.
In the drawing attached the the axis of the polar array is the Z-Axis.
In case the polar array axis is not one of the main coordinate system, using a Datum line will do it.
Attachments
Heros_bolt_transf.fcstd
(24.98 KiB) Downloaded 19 times
abdullah
Posts: 3583
Joined: Sun May 04, 2014 3:16 pm

Re: PDN: Polar array issue

Postby abdullah » Tue Jun 20, 2017 1:54 pm

hinckel wrote: ping
I have run into trouble with this:

OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11310 (Git)
Build type: None
Branch: master
Hash: d28bae3f52b3e7cf959e8b9f7bcff264f95db191
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0

What did you use for yours?

The reason is that I also tried polar with datum line, basically nothing would work.

So either there was something wrong in my sketches, or there is a problem with a recent commit...
abdullah
Posts: 3583
Joined: Sun May 04, 2014 3:16 pm

Re: PDN: Polar array issue

Postby abdullah » Tue Jun 20, 2017 2:02 pm

Something weird happens. When I open your file with my version of the PPA, I can not hide/show the individual features... I am starting to think that your version of FC is higher than mine...
hinckel
Posts: 84
Joined: Fri Nov 21, 2014 11:45 am
Location: SJCAMPOS, SP - BR

Re: PDN: Polar array issue

Postby hinckel » Tue Jun 20, 2017 2:48 pm

My version is
OS: "openSUSE Leap 42.2"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11378 (Git)
Build type: Unknown
Branch: master
Hash: cd9adc79945e68602a3193910496df007d70707a
Python version: 2.7.13
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.9.1.oce-0.18

I also have the add-on Part-O-Magic installed and active.
ulrich1a
Posts: 1958
Joined: Sun Jul 07, 2013 12:08 pm

Re: PDN: Polar array issue

Postby ulrich1a » Tue Jun 20, 2017 6:37 pm

I would guess, it is an OCCT-Bug. I had to use an angle of 270°. It then works for me with:

OS: Debian GNU/Linux 8.8 (jessie)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10887 +3 (Git)
Build type: Debug
Branch: Solid_and_Shells
Hash: 41b293d1b3a4678c8c1d78b2edebacfaa50a5839
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

It fails with:

OS: Debian GNU/Linux 8.8 (jessie)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11372 (Git)
Build type: Release
Branch: Rueck6
Hash: 4ea22337567fd8880b43ca8614770627f20658f9
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.1.0

Ulrich
User avatar
sgrogan
Posts: 6166
Joined: Wed Oct 22, 2014 5:02 pm

Re: PDN: Polar array issue

Postby sgrogan » Tue Jun 20, 2017 6:54 pm

ulrich1a wrote:
Tue Jun 20, 2017 6:37 pm
I would guess, it is an OCCT-Bug. I had to use an angle of 270°. It then works for me with:
+1
I changed Sketch001 so the slot was at 45 deg and polar pattern and multi-transform mirror (using horizontal and vertical sketch axes) both worked and pass check geometry w/BOP

I have problems with hinckel's file also. (Maybe Part-o-Magic?)

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11378 (Git)
Build type: Release
Branch: master
Hash: cd9adc79945e68602a3193910496df007d70707a
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
Heros_bolt_transf_mirror.fcstd
(24.78 KiB) Downloaded 16 times
"fight the good fight"
abdullah
Posts: 3583
Joined: Sun May 04, 2014 3:16 pm

Re: PDN: Polar array issue

Postby abdullah » Wed Jun 21, 2017 2:03 pm

sgrogan wrote:
Tue Jun 20, 2017 6:54 pm
ulrich1a wrote:
Tue Jun 20, 2017 6:37 pm
I would guess, it is an OCCT-Bug. I had to use an angle of 270°. It then works for me with:
+1
I changed Sketch001 so the slot was at 45 deg and polar pattern and multi-transform mirror (using horizontal and vertical sketch axes) both worked and pass check geometry w/BOP

I have problems with hinckel's file also. (Maybe Part-o-Magic?)

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11378 (Git)
Build type: Release
Branch: master
Hash: cd9adc79945e68602a3193910496df007d70707a
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
Heros_bolt_transf_mirror.fcstd
Ok. Thanks for testing.

I think we need to streamline the bug reporting to OCCT. We want it fixed and it is also nice to give back to whom it is providing our CAD kernel.

Currently I am having a peak of actual work, so I will investigate this issue further on...
User avatar
sgrogan
Posts: 6166
Joined: Wed Oct 22, 2014 5:02 pm

Re: PDN: Polar array issue

Postby sgrogan » Wed Jun 21, 2017 2:27 pm

abdullah wrote:
Wed Jun 21, 2017 2:03 pm
I think we need to streamline the bug reporting to OCCT. We want it fixed and it is also nice to give back to whom it is providing our CAD kernel.
See Here: https://forum.freecadweb.org/viewtopic.php?f=8&t=22963
"fight the good fight"
User avatar
Kunda1
Posts: 8772
Joined: Thu Jan 05, 2017 9:03 pm

Re: PDN: Polar array issue

Postby Kunda1 » Wed Jun 21, 2017 3:41 pm

Abdullah wrote:ping
Bug filed issue #3093
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features