10 | | * If you start with just a single line segment, you will get a rectangle. |
11 | | * If you start with an area, you will tack on a rectangular protrusion to the area. |
| 13 | == Move a node along adjacent segment (`Ctrl`) ==#Movenode |
| 14 | Special case when a node selected, press `Ctrl` to activate mode. This mode doesn't create any new nodes or ways. |
| 15 | |
| 16 | Will move a node in every of two directions. Resulting point can be moved in one of (2*adjacent segments) directions: |
| 17 | |
| 18 | [[Image(extrude-used-on-node.gif,link=)]] |
| 19 | |
| 20 | == Move segment in parallel (`Ctrl`) ==#MovesegmentinparallelCtrl |
| 21 | [[JOSMImage(cursor/modifier/rectangle_move)]] Move segment in parallel. Nodes are moved even if they are connected to other ways. |
| 22 | |
| 23 | This mode doesn't create any new nodes or ways. |
| 24 | |
| 25 | [[Image(Ctrl.png,link=)]] |
| 26 | |
| 27 | == Basic extrude usage on closed ways ==#Basicextrudeusageonclosedways |
| 28 | Here, [wikitr:/Help/Action/DrawBuilding DrawBuilding] was used to create approximations first, then multiple Extrude tools were used, which are explained later: |
| 29 | |
| 30 | [[Image(extrude-simple-mode-buildings.gif,link=)]] |
| 31 | |
| 32 | === Special case with two nodes === |
| 33 | If you start with just a single line segment, you will get a rectangle. |
| 34 | |
| 35 | [[Image(LineExtrude.png,link=)]] |
| 36 | |
| 37 | === On closed ways === |
| 38 | Click on a way segment and drag it. There are up to 3 possible directions - at right angle to the original position and along its neighboring segments. The chosen reference segment will be indicated. |
| 39 | |
| 40 | [[Image(BasicExtrudes.png,link=)]] |
| 41 | |
| 42 | **Note**: In certain cases new nodes will not be created. Specifically, if new segment is just lengthening of the old one. However, the node will not be moved when it's part of another way, as to not affect the other way. |
| 43 | |
| 44 | === Double click will insert a node ===#Insertnode |
| 45 | A double click at a way segment inserts a new node. |
| 46 | |
| 47 | === Modifiers === |
| 48 | ==== Dual alignment (`X`) ====#Dualalignment |
| 49 | Toggled by `X` or the [[JOSMImage(mapmode/extrude/dualalign)]] item in the [wikitr:/Help/Menu/Edit Edit menu]. Instead of using one reference segment and moving both nodes of the selected original segment in the same direction, |
| 50 | this mode uses two reference segments (neighbors of the original segment) and moves the nodes each according to its own reference segment. |
| 51 | |
| 52 | [[Image(DualAlign.png,link=)]] |
| 53 | |
| 54 | The status is indicated in the status line and visually (two reference segments shown instead of one). |
| 55 | |
| 56 | ==== Create intermediate points (`Shift`) ====#Shift |
| 57 | [[JOSMImage(cursor/modifier/rectangle_plussmall)]] Always create nodes, even if new segment is just lengthening of the old one. |
| 58 | |
| 59 | [[Image(Shift.png,link=)]] |
| 60 | |
| 61 | ==== Create a new way nearby (`Alt`) ====#Alt |
| 62 | [[JOSMImage(cursor/modifier/rectangle_plus)]] Don't alter original way, create new way instead. Ways will share the two nodes. |
| 63 | |
| 64 | [[Image(Alt.png,link=)]] |
| 65 | |
| 66 | |
| 67 | == Extrude usage on unclosed ways == |
| 68 | === Drag end node with (`Ctrl`) ===#Ctrl |
| 69 | Will extend way (move a node along segment): |
| 70 | |
| 71 | [[Image(x_ctrl_leftmouse_drag.png,link=)]] |
| 72 | |
| 73 | == Advanced Preferences == |
| 74 | * Color of main line: Defaults to `selected` color, but can be changed with [wikitr:/Help/Preferences/Advanced advanced preference] `color.extrude.main.line`. |
| 75 | * Stroke of main line: `extrude.stroke.main`. Parameters: `<width>` for solid line (width in pixels), `<width> <dashlength> <spacelength>` for dashed line. |
| 76 | * Stroke of old line (used while [#Ctrl moving segment]): `extrude.ctrl.stroke.old-line` (stroke parameters). |
| 77 | * Color of helper line: `Extrude: helper line` in [wikitr:/Help/Preferences/Display#Colors colors settings]. |
| 78 | * Stroke of helper line: `extrude.stroke.helper-line` (stroke parameters). |
| 79 | * Size of right angle helper symbol: `extrude.angle-symbol-radius` (pixels). |
| 80 | * [#Movenode Moving nodes] without the need of pressing `Ctrl`: `extrude.drag-nodes-without-ctrl` (boolean). |
| 81 | * Ignoring shared nodes to avoid overlapping segments: `extrude.ignore-shared-nodes` (boolean). |
| 82 | * If enabled (default), nodes shared with other way(s) are left untouched and new node is created to facilitate the extrusion. \\ [[Image(IgnoreSharedNodes-enabled.png,link=)]] |
| 83 | * If disabled, shared nodes are still part of the way, segments might overlap \\ [[Image(IgnoreSharedNodes-disabled.png,link=)]] |
| 84 | * The extrude action will be performed only if the pointer moved more than specified distance: `extrude.initial-move-threshold` (pixels, default 1). |
| 85 | * Changing the keyboard shortcut of [#Dualalignment Dual alignment mode]: Set `extrude.dualalign.toggleOnRepeatedX` to `false` to disable the default one, set new one via `Mode: Extrude Dual alignment` shortcut. |