Polyscope and Geometry central disagree on the number of halfedges in a mesh ?
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- C++
- Estrellas
- 2.2k
- Forks
- 242
- Merge medio
- 11 min
- PR fusionados (30 d)
- 1
Descripción
Not sure if anyone else has found this or if I am doing this wrong but I have found that when loading a mesh in with geometry central and then trying to add a halfedge scalar value to the mesh in polyscope I get an error as polyscope thinks there is fewer halfedges than geometry central does. Incase I am doing something stupid I have added a snipped below.
polyscope::init();
//Load Mesh
std::tie(mesh, geometry) = readManifoldSurfaceMesh("QuadMesh.obj");
//Register Mesh
sm = polyscope::registerSurfaceMesh("my mesh", geometry->vertexPositions, mesh->getFaceVertexList());
//Object to store halfedge values
HalfedgeData<int> visitedHE(*mesh, 0);
// Filling data (This is not the way I am actually doing it, but its essentially the same )
for(Halfedge he : mesh->halfedges()){
visitedHE[he] =1;
}
sm->addHalfedgeScalarQuantity("HEvisit", visitedHE)->setEnabled(true);
polyscope::show();
From the mesh I have Geometry Central thinks that I have 10974 halfedges but polyscope thinks I have 10928 halfedges??
If I am missing something obvious then please let me know.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza reproduciendo el fragmento con readManifoldSurfaceMesh(), registerSurfaceMesh() y addHalfedgeScalarQuantity(). Compara el recuento de halfedges() con el recuento de la malla de superficie registrada y, después, sigue el rastro de dónde se establecen esos recuentos. El trabajo estará terminado cuando se explique la discrepancia y la cantidad escalar de halfedges maneje la misma malla de forma coherente, con una comprobación de regresión si el proyecto tiene una.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- cpp
- Área
- computer-graphics
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100