Marquee selection similar to other CAD packages (left to right vs. right to left).

Đang mở
#1,416 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cpp
Lĩnh vực
computer-graphics, desktop

Hướng nghiên cứu

This is a CAD marquee-selection feature: left-to-right should select anything overlapping the box, right-to-left only fully contained items. Start from the merged line-segment AABB work in pull request 1411 and commit 0d26ca17, and from the discussion on issue 1374. Trace how the selection rectangle is built and how entities are tested against it; extend that test by drag direction. Done when direction changes hit-testing as described and existing selection still works. Also consider the performance note on line-segment marquee in that PR thread.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement UI
System information
Expected behavior

phkahler commented Sep 24, 2023

Some tools will select anything overlapping the box if you draw the box left-to-right and only things completely inside the box when drawn right-to-left.

I thought solvespace was trying to do this but maybe not. Maybe it should. ;-)

ruevs commented Sep 25, 2023 •

Interesting! I never knew this existed - in any software.

This could be a pretty useful "power user" feature. I wonder how widespread it is? Apparently AutoCAD uses it https://forum.vectorworks.net/index.php?/topic/42974-marquee-select-like-autocad/ and it seems Adobe Illustrator does not :-) https://illustrator.uservoice.com/forums/333657-illustrator-desktop-feature-requests/suggestions/31863601-select-inside-marquee-window

And an example of the behaviour on the web
https://playground.babylonjs.com/#QHHXSD#1 (https://forum.babylonjs.com/t/marquee-selection-demo/16665)

Actual behavior

The "direction" of marquee selection does not matter.

Additional information

SolveSpace marquee selection used to be "imprecise" - any object whose Axis Aligned Bounding Box (AABB) intersected the marquee was selected. This was fixed for line segments in this pull request it is merged here https://github.com/solvespace/solvespace/commit/0d26ca17f750f62fee917a88101bdb03cf5225dd.

Also possibly improve the performance of marquee selection on line segments: https://github.com/solvespace/solvespace/pull/1411#issuecomment-1733193151

The marquee selection behaviour discussion started here https://github.com/solvespace/solvespace/issues/1374#issuecomment-1732564533 .

Ngôn ngữ chính
C++
Star
4.2k
Fork
600
Merge trung bình
11 giờ 8 phút
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của solvespace/solvespace

Tất cả issue của solvespace/solvespace

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.