Generators: values entered in the inspector always make a valid shape

Đã đóng
#187 0 bình luận 0 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
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp, unity
Lĩnh vực
game-dev

Hướng nghiên cứu

The issue spans every generator, so start with the shared inspector value handling that the box, capsule, cylinder and hemisphere generators use, and check how negative and zero sizes are passed through. Done means negative sizes build a valid flipped shape, zero sizes cancel creation, and existing generators reject zero. Expect cross-cutting changes tied to issues #184 to #186 and #188, so coordinate with those first.

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

Mô tả

Every generator should make sure that values entered through the inspector always give a valid shape. Negative sizes are allowed and are built as valid shapes; zero sizes, and combinations of values that can't be built, are not.

This is the inspector side of the problems found for the box (#184), capsule (#185), cylinder (#186) and hemisphere (#188), and applies to all generators.

Rule for all generators: negative sizes are allowed, and every generator builds a valid shape from them (swapping sides under the hood, so the brush is the right way out). A zero size is never allowed: creating at zero size cancels, and an existing generator can't be made zero sized.

Related: box (#184), capsule (#185), cylinder (#186), hemisphere (#188), sphere (#189), extruded shape (#190), linear stairs (#191), spiral stairs (#192).

Ngôn ngữ chính
C#
Star
135
Fork
15
Merge trung bình
24 phút
Pull request đã merge (30 ngày)
112

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 RadicalCSG/com.chisel

Tất cả issue của RadicalCSG/com.chisel

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.