nmwsharp / nmwsharp/polyscope

Polyscope and Geometry central disagree on the number of halfedges in a mesh ?

未关闭
#295 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
C++
星标
2.2k
派生
242
平均合并
11 分钟
30 天内合并 PR
1

描述

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.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,使用 readManifoldSurfaceMesh()、registerSurfaceMesh() 和 addHalfedgeScalarQuantity() 重现该代码片段。将 halfedges() 的数量与已注册 surface mesh 的数量进行比较,然后追踪这些数量是在哪里建立的。完成的标准是解释清楚差异,并确保 halfedge scalar quantity 一致地处理同一个 mesh;如果项目有回归检查,还应包含回归检查。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp
领域
computer-graphics
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。