Opened 2 years ago
Closed 11 months ago
#6400 closed enhancement (worksforme)
offer option to allign nodes in a semicircle
| Reported by: | flaimo | Owned by: | flaimo |
|---|---|---|---|
| Priority: | normal | 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 Changed 2 years ago by olejorgenb
comment:2 Changed 2 years ago by flaimo
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 Changed 2 years ago by olejorgenb
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 Changed 2 years ago by flaimo
ok, i see. maybe you should add that to the wiki page. thanks for plugin.
comment:5 Changed 2 years ago by skyper
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 Changed 20 months ago by skyper
comment:7 Changed 20 months ago by olejorgenb
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 Changed 12 months ago by skyper
- Owner changed from team to flaimo
- Status changed from new to needinfo
What is the status of this ticket ?
The original feature asked for is not mentioned any more.
comment:9 Changed 11 months ago by skyper
- Resolution set to worksforme
- Status changed from needinfo to 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 :)