Crasting zig-yag line. Is there simple way?

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!
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Crasting zig-yag line. Is there simple way?

Post by onekk »

projecting the line onto the outer surface of the cylinder could be the right way, but it has to be done with a script or a Macro.

It is not very difficult, you could also make two cylinder and project join the lines to create a solid like I've done in a recent post about characters.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
drmacro
Veteran
Posts: 8865
Joined: Sun Mar 02, 2014 4:35 pm

Re: Crasting zig-yag line. Is there simple way?

Post by drmacro »

I like Python as much as anyone...but, no need in this instance...IMO. 8-)
Attachments
Snip macro screenshot-4dc4e2.png
Snip macro screenshot-4dc4e2.png (164.97 KiB) Viewed 394 times
ToothWheel.FCStd
(57.85 KiB) Downloaded 8 times
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
mario52
Veteran
Posts: 4673
Joined: Wed May 16, 2012 2:13 pm

Re: Crasting zig-yag line. Is there simple way?

Post by mario52 »

Hi

see macro Repeating pattern on a cylinder (center on point)

Image

and Hirth joint (center on line)

Image

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
edwilliams16
Veteran
Posts: 3106
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Crasting zig-yag line. Is there simple way?

Post by edwilliams16 »

Using loft to point and polar pattern in Part Design looks simpler to me.
Screen Shot 2022-08-09 at 8.58.36 AM.png
Screen Shot 2022-08-09 at 8.58.36 AM.png (39.79 KiB) Viewed 362 times
Attachments
crowngear.FCStd
(121.56 KiB) Downloaded 8 times
User avatar
PedjaS
Posts: 147
Joined: Sat Jan 18, 2020 6:35 pm

Re: Crasting zig-yag line. Is there simple way?

Post by PedjaS »

papyblaise wrote: Tue Aug 09, 2022 2:04 pmvoilà
Thanks. I used this method and it works.
chrisb wrote: Tue Aug 09, 2022 5:04 pm Search the forum for "Hirth joint".
Excellent. I had no idea how it is called.
Post Reply