Generator parts: target a specific brush of a generator, or all of a kind
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- C#
- Estrelas
- 135
- Forks
- 15
- Merge médio
- 31min
- PRs com merge (30d)
- 138
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de RadicalCSG/com.chisel
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
RadicalCSG/com.chisel#312 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 63/100
RadicalCSG/com.chisel#294 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
RadicalCSG/com.chisel#290 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
RadicalCSG/com.chisel#221 ·
Mantenedores costumam responder em até 1 dia
-
Stairs: beveled edgesAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
RadicalCSG/com.chisel#313 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de RadicalCSG/com.chisel
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
criticalmanufacturing/cli#909 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
eyalgolan/statecraft-israel#3093 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 63/100
DeveloperAcademy-POSTECH/2026-C6-M10-MUSA#677 ·
Mantenedores costumam responder em até 1 dia
-
REQ-13 : une demande En cours perd son responsable par un simple enregistrement, et reste En coursAbertaa-corriger bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
christian-raj/S-Aloha#301 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100