mapeditor / mapeditor/tiled

Freehand polygon/polyline tools

Open
#3,433 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
12.9k
Forks
2k
Avg merge
4h 27m
Merged PRs (30d)
8

Description

Sometimes I want to approximate a curve with a poly. This takes a lot of vertices, thus a lot of mouse clicks, and then more clicks and a lot of drags if I have to edit the poly later. I propose these freehand drawing tools to save some fingers.

- Drawing pencil. Freehand draw a new poly as in an art application. Available options are to place vertices every n pixels, or at grid snap points. Relieves repeated clicking.

- Editing pencil. Like the drawing pencil, and with the same options, but only works on an existing line segment of a selected poly to reshape it. Relieves repeated double-clicking and dragging.

- Alternatively one pencil that edits if starting on a line segment of a selected poly, or draws a new poly otherwise.

- Vertex eraser. Simply a brush that deletes vertices from selected polys. Brush size is an option. Relieves repeated selecting and deleting.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named in the issue. Start by locating the existing polygon/polyline drawing and editing tools, then determine how vertex spacing, grid snapping, selected segments, and vertex deletion are represented; done would mean the proposed pencil and eraser workflows operate with their stated options.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.