Fix sphere: zero height and zero diameter

Aperta
#189 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à
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp, unity
Ambito
tooling

Direzione di ricerca

The payload names no files, only the sphere generator and related issues #184 to #188, so locate the sphere generator and its size handling in the repository first. Compare it with the cylinder behaviour described in #186, which grows again when dragged past zero. Done means the sphere cannot be sized to zero height or diameter, negative sizes still build a valid shape, and creating at zero size cancels. The general rule covers every generator, so agree the scope with maintainers before touching them all.

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

Descrizione

Problems when drawing and editing a sphere:

  1. Sizing the height to zero makes it flat. As with the other generators, the sphere can be sized down to zero height, which leaves it flat as a pancake.
  2. The diameter can be made zero. Dragging the diameter past zero keeps it at zero, as with the capsule's width (#185). It should behave like the cylinder (#186): dragging past zero makes it grow again on the other side, never stopping at zero.

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), inspector values (#187), hemisphere (#188).

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

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.