[josm-dev] [patch] AlighInCircle action

Petr Dlouhý petr.dlouhy at email.cz
Fri Nov 21 00:21:10 GMT 2008


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ý
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AlignInCircleAction.diff
Type: application/octet-stream
Size: 9092 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20081121/e04be594/attachment.obj>


More information about the josm-dev mailing list