Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

GC reports nonmanifold mesh when mesh is just not oriented consistently

Abierto
#142 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
cpp

Línea de trabajo

Start by locating the GC validation that reports a mesh as nonmanifold and reproduce the case where the mesh is manifold but faces are inconsistently oriented. Decide whether the intended scope is revised error text, explicit orientation detection, or an orientFaces() method; done means the selected behavior distinguishes or resolves this case without misreporting it.

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

Descripción

GC will report that a mesh is nonmanifold even in cases where it is manifold, but the faces are not consistently aligned.

Level 1 fix

A quick improvement would just be to change error reporting to something like:

Mesh is either nonmanifold, or faces are not oriented consistently.
Level 2 fix

A bigger fix would be to detect that faces are inconsistently oriented, and report this explicitly:

Mesh is manifold, but faces are not consistently oriented.
Level 3 fix

The ultimate fix would be to actually fix the normal orientation, if the mesh is manifold and orientable. There are some design decisions here (e.g., which of the two orientations should we pick?) but generally this should be pretty straightforward.

We could also implement this as a general-purpose method like orientFaces(), which is probably useful in its own right. Then the user can be asked to call this method explicitly:

Mesh is manifold, but faces are not consistently oriented.  Please call orientFaces() before trying to build a ManifoldSurfaceMesh.

This may be better than automatically orienting someone's faces, which might violate the principle of least surprise.

Lenguaje dominante
C++
Estrellas
1.3k
Forks
183
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

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 nmwsharp/geometry-central

Todos los issues de nmwsharp/geometry-central

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.