Generator parts: target a specific brush of a generator, or all of a kind
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Start by reading the related issues #165, #242, #183, and #237, then trace how generators create brushes and how decals and trims resolve their targets. Check whether each generator can tag brushes consistently and how polygon decal corner anchors fit. Done means generators expose named brush parts, targets can select a part by role and index or apply to all matching parts, and decals and trims follow those targets as described.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Decals (and anything else that targets a surface) can't say which brush of a generator they mean. A target is the generator plus a surface number, which resolves to the first brush with that surface (depth first). On a generator made of several brushes (stairs, and any other) a trim or targeted decal lands on the wrong brush, or doesn't draw.
This has to work for every generator, and each generator handles it itself: it knows what its brushes are.
Parts
- Each generator declares the roles of its brushes (for linear stairs: Step, Landing, Side; for spiral stairs: Step, Column, RailTop; ...), each with a display name for the UI.
- Every brush it makes is tagged with a part key: (role, index), small ints, set when the brushes are made. Names are never compared at runtime.
- On rebuild the generator fills a table from part key to brush, so resolving a target is a lookup, not a search.
- A generator that declares nothing gets one default role ("Brush") indexed in build order, so every generator works the same way.
Targets
A target becomes: generator, surface number, role, index, and how the index counts:
- From start or from end: picked from the nearer end when placed, so a decal on the top step stays on the top step when steps are added or removed.
- All: every brush of that role.
Placing (dropping a decal, picking a trim's edge) fills these in from the brush hit. The decal inspector shows the part by name ("Linear Stairs > Step 3, from bottom") and lets the count (from start, from end, all) be changed.
Automatically apply to multiple targets
- Box decal on all steps: one decal component; the decal manager adds a copy per matching brush, at the same place relative to each brush's surface, like it splits a trim into pieces now.
- Trim along a whole edge: the chain is the same edge on every brush of the role, in index order, so a trim follows e.g. the whole curved top edge of the rails, and keeps doing so when segments are added.
- Could work with decals by dropping them while holding shift, on particular generator specific edges or surfaces.
Changes
- When a part is gone (fewer steps than the index), the target draws nothing and keeps its data, as now.
- Robust to adding brushes: targets keep naming the same part.
To check first
- That every generator builds its brushes in an order it can tag consistently.
- How polygon decals' corner anchors fit in.
Related: #165, #242, #183, #237.
- Ngôn ngữ chính
- C#
- Star
- 135
- Fork
- 15
- Merge trung bình
- 33 phút
- Pull request đã merge (30 ngày)
- 122
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của RadicalCSG/com.chisel
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
RadicalCSG/com.chisel#221 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
RadicalCSG/com.chisel#252 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
RadicalCSG/com.chisel#248 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
RadicalCSG/com.chisel#244 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
RadicalCSG/com.chisel#241 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của RadicalCSG/com.chisel
Issue tương tự
-
area/access-management Frontend onboarding candidate :handshake:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Altinn/altinn-auth#4941 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
aws/aws-sdk-net#4586 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
30-minutes algorithm any-language beginner-friendly c community cpp csharp data-structures go good first issue hacktoberfest help wanted kotlin learning leetcode php ruby rust swift
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 85/100
Huerte/algo-solutions-python#211 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
QuantConnect/Lean#10047 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Windows Native Setup Fails on "Finishing setup" Due to 10s Gateway Health Check TimeoutĐang mởbug bug:behavior impact:ux-release-blocker P0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
openclaw/openclaw#196251 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày