[josm-dev] [PATCH] Extrude 'move along normal' and cleanups

Robert Scott lists at humanleg.org.uk
Sun Nov 1 15:06:29 GMT 2009


Hi,

Attached is a patch against SVN 2374 which adds a feature to extrude mode: hold ctrl while dragging to move an existing segment along its normal rather than creating a new segment.

This is needed to be able to easily edit buildings etc after they have been initially extruded.

In adding this, I touched most of the extrude mode code, removing some of the more glaring problems (like editing logic in the painting code) and tried to sanitize the mode's state machine. I also removed most of the remnants of the select mode it was copied from for clarity.

There are a few other things I would like to do to extrude mode, such as make the geometry work in real space rather then screen space - so that it's projection independent. And I also want to make the hint line painting a bit better. But this will have to do for now.

Please note I am a c++ programmer, not a java programmer, so comments are welcome.


robert.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: josm-2374-extrude-movenormal-ris.diff
Type: text/x-diff
Size: 15376 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20091101/c7d0798b/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20091101/c7d0798b/attachment.pgp>


More information about the josm-dev mailing list