How can I do a semicircle?

Cristina's Avatar

Cristina

02 Oct, 2019 10:21 AM

Hi!

I would lo know how I can create a semi circle and add values without having the all circle. I tried with the text doens't follow the arc lines. Also I tried with rotation but makes the circle full. I wat the text to follor the semicirle direccion like in a simple circle.

  1. Support Staff 1 Posted by john on 02 Oct, 2019 09:51 PM

    john's Avatar

    Cristina,

    This is a slightly tricky problem, so it's not surprising you didn't get it on your first try.

    I am attaching what I believe to be a solution (if I correctly understand what you want to do). You can download and expand the attached zip file to see how it works.

    The basic idea is to resample along the arc and place the text at each point (which you have already done). Then you need to rotate each label so it radiates out at the correct angle. You can use the angle node to calculate the angles and then feed those angles along with the labels into the rotate node.

    You also need to feed the positions into the rotate node so that each label rotates about its resample point, not about the origin. It's a common mistake to overlook this.

    This leaves one final problem: the text on the left side of the arc is upside down. Fortunately, I have a node called true_spoke that fixes this problem. The node is part of my node library, free for use, and available here:

    http://support.nodebox.net/discussions/show-your-work/336-cartan-no...

    True_spoke is a subnetwork. If you want to see how it works, just control-click or right-click on the node and choose "Edit Children". It contains some sub-subnetworks.

    As you can see from the screenshot, the final network is not too bad - only nine nodes. Please let me know if this is the effect you were trying to achieve. It is also possible to make text follow the arc itself, but that would only work with a much smaller number of labels.

    Happy NodeBoxing!

    John

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • Captura_de_pantalla_2019-10-02_a_las_12.20.27.png 106 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

07 Nov, 2024 10:53 AM
02 Nov, 2024 11:22 AM
01 Nov, 2024 12:41 AM
01 Oct, 2024 07:59 AM
30 Sep, 2024 11:37 PM

 

30 Sep, 2024 11:11 AM
30 Sep, 2024 02:37 AM
28 Sep, 2024 10:33 AM
26 Sep, 2024 06:41 AM
24 Sep, 2024 12:32 AM
24 Sep, 2024 12:27 AM