Opened 13 years ago
Closed 12 years ago
#6400 closed enhancement (worksforme)
offer option to allign nodes in a semicircle
Reported by: | flaimo | Owned by: | flaimo |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | tested |
Keywords: | Cc: |
Description
pressing "o" orders selected nodes in a circle. it would be great so have something like that for semicircles too. the two nodes which are farthest apart are the diameter, the other nodes get aligned in a semicircle to the left or right. this would really help when drawing houses or swimming pools which aren't square at one end.
Attachments (0)
Change History (9)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
seems to work fine so far. one bug i noticed is, that when selecting three nodes from a closed way and then using the plugin, the original line between the three nodes doesn't get removed after the semicircle has been drawn.
comment:3 by , 13 years ago
If you select the way too, the nodes should be fused with the selected way. But suggestions for behavior is welcome.
Now it works roughly like this:
The order of the selected nodes determine which arc is created.
- Only 3 nodes selected: A brand new way forming the arc (determined by the selection order) is created.
- One way selected: The arc is "fused" into the selected way. The 3 last nodes in the way are used.
- One way and 3 nodes (in that way) selected: The arc is "fused" into the selected way at the position of the selected nodes.
If multiple ways share the nodes in 2 or 3, these ways are modified too.
Currently the middle node is moved so the nodes in the arc are proportionally distributed.
comment:4 by , 13 years ago
ok, i see. maybe you should add that to the wiki page. thanks for plugin.
comment:5 by , 13 years ago
Hi olejorgenb
Thanks for the plugin.
I have a problem with 3.:
If the 3 nodes are not consecetive in the selected way only new arc nodes are created but the way is not fused.
r4125, o1.6.0_24-b07, openjdk
comment:6 by , 13 years ago
comment:7 by , 13 years ago
Only needed a rebuild due to recent changes in JOSM (i18n, removed tr(String) since tr(String, Object .. args) does the same thing)
I will check out #2891. Should really try to get some JOSM work done soon. Have been slacking :)
comment:8 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
What is the status of this ticket ?
The original feature asked for is not mentioned any more.
comment:9 by , 12 years ago
Resolution: | → worksforme |
---|---|
Status: | needinfo → closed |
The curves plugin was depreciated. Its arc function was included to UtilsPlugin2.
You could take a look at this new plugin: http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Curves
Documentation is sparse, and I'm sure there's bugs, but it's a start :)