Fix sphere: zero height and zero diameter

Abierto
#189 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp, unity
Área
tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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), extruded shape (#190), linear stairs (#191), spiral stairs (#192).

Lenguaje dominante
C#
Estrellas
135
Forks
15
Merge medio
22 min
PR fusionados (30 d)
97

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de RadicalCSG/com.chisel

Todos los issues de RadicalCSG/com.chisel

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.