Hello,

I enhanced the AlignInCircle action. Now it calculates the center of the circle as average position of circumcircles of the triangles of all triplets of neighbour nodes. The main improvement is, that if the nodes are allready on the circle, it calculates the center as center of that circle (unlike the prevous algorithm), so the nodes would not move (except numerical error).

I also implemented three new features:
When is selected node that is part of the way, then make a regular polygon, selected node doesn't move.
I haven't got better idea, how to activate that function.

When one way and one node is selected, set center to position of that node.
When one more node, part of the way, is selected, set the radius equal to the distance between two nodes.

I am not able to commit that patch. Am I doing something wrong, or is on josm.openstreetmap.de different login than on svn.openstreetmap.de?
Anyway, I am sending the patch, so you can commit it.

--
Petr Dlouhý

Attachment: AlignInCircleAction.diff
Description: Binary data

_______________________________________________
josm-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/josm-dev

Reply via email to