How can I do a semicircle?
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.
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
Support Staff 1 Posted by john on 02 Oct, 2019 09:51 PM
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