Hello!
I will assume that:
Your octagon is in a circle of radius r.
The center of this circle is (0,0). Is it right?
Now let's assume that you have 4 "nodes" on the axes. Therefore, these 4
nodes will be (r, 0), (0, r), (-r, 0), (0, -r)
As for the 4 other nodes, they will be:
(r*root2, r*root2), (-r*root2, r*root2), (-r*root2, -r*root2), (r*root2, -r*root2)
where root2 = half of root of 2 or 0.707...
And more generally, if you have an octagon rotated by angle phi, the "nodes"
will be:
(r*cos(phi+i*pi/4), r*sin(phi+i*pi/4), i being in {0, 1, 2, 3, 4, 5, 6, 7}.
Dora
dipt said:
hi
how can i get the co-ordinates of each node of a octagon circle around a central node having co-ordinate (0,0,0)
plz help me