PolarPattern with Z-axis shift depending on the function of angle
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!
PolarPattern with Z-axis shift depending on the function of angle
Hi All!
I'd like to make 20 holes in a cylinder. The main problem is that the holes must be shifted in Z-axis using sinus function like this:
- hole number 1: shift = sin(0 * 360/20) * shift_amplitude = sin(0deg) * shift_amplitude
- hole number 2: shift = sin(1 * 360/20) * shift_amplitude = sin(18deg) * shift_amplitude
- ...
- hole number N: shift = sin((N-1) * 360/20) * shift_amplitude
How to make such PolarPattern?
Best regards,
Jacek
I'd like to make 20 holes in a cylinder. The main problem is that the holes must be shifted in Z-axis using sinus function like this:
- hole number 1: shift = sin(0 * 360/20) * shift_amplitude = sin(0deg) * shift_amplitude
- hole number 2: shift = sin(1 * 360/20) * shift_amplitude = sin(18deg) * shift_amplitude
- ...
- hole number N: shift = sin((N-1) * 360/20) * shift_amplitude
How to make such PolarPattern?
Best regards,
Jacek
Last edited by JackkDBA on Wed Nov 30, 2022 10:52 am, edited 2 times in total.
Best regards,
Jacek
Jacek
Re: PolarPattern with Z-axis shift depending on the angle
PolarPattern cannot do this. Have a look at Draft PolarArray if it fits your needs. It can do Z offsets.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: PolarPattern with Z-axis shift depending on the angle
Thank you for the answer, chrisb.
Unfortunately, I can't find PolarArray tool. May you direct me, please?
Unfortunately, I can't find PolarArray tool. May you direct me, please?
Best regards,
Jacek
Jacek
- papyblaise
- Veteran
- Posts: 7998
- Joined: Thu Jun 13, 2019 4:28 pm
- Location: France
Re: PolarPattern with Z-axis shift depending on the angle
it's that
- Attachments
-
- hole helix.JPG (29.83 KiB) Viewed 963 times
-
- hole helix.FCStd
- (138.74 KiB) Downloaded 21 times
Re: PolarPattern with Z-axis shift depending on the angle
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: PolarPattern with Z-axis shift depending on the angle
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Re: PolarPattern with Z-axis shift depending on the angle
drmarco, thanks for the answer.
However, how may I reference current angle to make the position dependent on it?
However, how may I reference current angle to make the position dependent on it?
Best regards,
Jacek
Jacek
Re: PolarPattern with Z-axis shift depending on the angle
Thanks! It looks very nice. I will take a look
Best regards,
Jacek
Jacek
Re: PolarPattern with Z-axis shift depending on the angle
Unfortunately, the holes are placed linearly, not in positions pointed by the sinus function. Any idea, how to fix it?
Best regards,
Jacek
Jacek
- papyblaise
- Veteran
- Posts: 7998
- Joined: Thu Jun 13, 2019 4:28 pm
- Location: France
Re: PolarPattern with Z-axis shift depending on the angle
you need a powerful counter to calculate Z = Z Total /Number of Holes
- Attachments
-
- hole helix Z.JPG (59.08 KiB) Viewed 713 times