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

Chiusa
#187 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp, unity
Ambito
game-dev

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
C#
Stelle
135
Fork
15
Merge medio
24m
PR unite (30g)
112

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RadicalCSG/com.chisel

Tutte le issue di RadicalCSG/com.chisel

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.