## Polar pattern bug for angles < 360°

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules

mithrandil
Posts: 7
Joined: Tue Jun 20, 2017 8:56 am

### Polar pattern bug for angles < 360°

That's not what one might expect from 180° polar pattern...

the slice is 360°/8 so 4 slices on 180° should be half a circle
PP-BUG.JPG (44.9 KiB) Viewed 298 times
OS: Windows 10
Word size of OS: 64-bit
Version: 0.17.13509 (Git)
Build type: Release
Hash: 0258808ccb6ba3bd5ea9312f79cd023f1a8671b7
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: Italian/Italy (it_IT)
Posts: 80
Joined: Fri Mar 16, 2018 11:10 pm

### Re: Polar pattern bug for angles < 360°

Mithrandil,
this is the classical poles & space problem, you only need 3 angles of 45 to pack the 4 slices in 180, so your angle should be 135degrees.
Cheers
pie.png (16.83 KiB) Viewed 285 times
Jee-Bee
Posts: 2040
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

### Re: Polar pattern bug for angles < 360°

I ould like it that (even only a option to choose) i can set the spacing (in this case 45 degrees) and the number of instances.
Most of the time faster and more easy...
DeepSOIC
Posts: 7655
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

### Re: Polar pattern bug for angles < 360°

Jee-Bee wrote:
Tue Apr 17, 2018 7:01 pm
I ould like it that (even only a option to choose) i can set the spacing (in this case 45 degrees) and the number of instances.
Most of the time faster and more easy...
In Lattice2 addon, it is possible. Use 'StepN' generator mode. But Lattice2 can't be used in PartDesign, yet. At least, directly... It may be possible via PD Boolean, I'm not sure.
mithrandil
Posts: 7
Joined: Tue Jun 20, 2017 8:56 am

### Re: Polar pattern bug for angles < 360°

Tue Apr 17, 2018 6:07 pm
Mithrandil,
this is the classical poles & space problem, you only need 3 angles of 45 to pack the 4 slices in 180, so your angle should be 135degrees.
Cheers
Sure,
I found the same way of doing it,
but it seems kind of a workaround to me.

BTW you don't need 135°C to fit 4 slices of 45°, you need 135° to fit 3 more slices (so you should set the counter to +3...),

Otherwise you should also set 360°-45°=315° to fit the whole 8 slices circle, but what is set by default is 360°, not 315°...

Can you get my point?
Posts: 80
Joined: Fri Mar 16, 2018 11:10 pm

### Re: Polar pattern bug for angles < 360°

You can also do it using a polar pattern angle formula like:
Sketch.Constraints.a * (PolarPattern.Occurrences - 1)
Where "a" is the slice angle name, then changing the number of occurrences does compute the right angle directly.
Cheers
mithrandil
Posts: 7
Joined: Tue Jun 20, 2017 8:56 am

### Re: Polar pattern bug for angles < 360°

Does this also make sense to you? (notice 1 ° of difference)

It totally doesn't!

Your solutions are workarounds, which are surely useful temporary solutions, but this is a bug which needs to be fixed.
Attachments
PP-BUG3.JPG (33.92 KiB) Viewed 258 times
PP-BUG2.JPG (35.61 KiB) Viewed 258 times
chrisb
Posts: 25645
Joined: Tue Mar 17, 2015 9:14 am

### Re: Polar pattern bug for angles < 360°

The 360° case is treated specially as a shortcut for "distribute the number of occurences over a whole circle".
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm

### Re: Polar pattern bug for angles < 360°

mithrandil wrote:
Tue Apr 17, 2018 7:37 pm
Can you get my point?