# Apply Morse Code onto a Curve

**URL:** <https://discourse.mcneel.com/t/apply-morse-code-onto-a-curve/103387>\
**Category:** Grasshopper\
**Tags:** data-tree\
**Created:** [June 3, 2020, 1:41pm UTC](https://discourse.mcneel.com/t/apply-morse-code-onto-a-curve/103387 "2020-06-03T13:41:09Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![Volker\_Rakow](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/volker_rakow/32/770451_2.png) [@Volker\_Rakow](https://discourse.mcneel.com/u/Volker_Rakow)\
**Post date:** [July 20, 2026, 2:33pm UTC](https://discourse.mcneel.com/t/apply-morse-code-onto-a-curve/103387/17 "2026-07-20T14:33:48Z")

</div>

> [@maje90](#):
>
> … can we say dots (circles) radius is equal to half-width of the strokes?

Yes… but no? If the dots are circles, the radius must be both the half-length of the dot in the chain and the half-width of the stroke. So either the base width unit for the dots/dashes and the spaces inbetween them are decided with the stroke size resultant, or you pick a stroke size and it determines the domain of the target curve used to show the Morse code.

> [@maje90](#):
>
> If so, dispatch your dot and dashes:
> 
> - for dots, create a circle from the center of the dot line segment
> - for dashes, shrink the segment ends by radius (negative extend) and then make both-sides offset and cap with half-circle arcs
> 
> ![2026-07-20 14_28_04-Untitled - Rhino 7 Commercial - Top](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/b/f/9bf85be8b36f0dededf1af9d1a54535519e8eb66.png)

This is a passable solution. It will result in variable spacing between the dots and dashes. I am reminded of [this](https://discourse.mcneel.com/t/curved-glass-facade-regular-ribbon-shape/219244) thread, where Divide Distance with semi-circles was discussed, and am considering appoaching this problem as pearls on a thread?

---

_[View the full topic](https://discourse.mcneel.com/t/apply-morse-code-onto-a-curve/103387)._
