Skip to content

Any number of points #9

Description

@xiuda

The privazy_zones app should be able to handle any number of points (3 or more) to define a zone. The current is hard-coded to 4, but as long as the user keeps clicking it should allow new points to be created. This involves a number of enhancements:

  • Addition of points should come with the deletion of unwanted points
  • The marker/line indicators auto-complete a shape after 4 markers are placed. How can we have it auto-complete when there is an indefinite number of points to be added?
  • We must maintain that points are placed in a clockwise/ccw pattern. (No skipping around)
  • If the order of points is not maintained, we must develop a solution to order them cw/ccw before converting them to a QPolygonF object
  • Regardless of the number of points, it must be a closed shape (the first and last points in the list are the same point)
  • Originally, after 4 points are placed clicking again edits the first point. How can we handle the editing of points if clicking again creates a new point instead of editing them?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions