Calling FlipEdgeNetwork::delaunayRefine() doesn't seem to preserve the shape of the original mesh
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- cpp
調査の方向性
Start by reproducing the reported result with GeodesicPathExtractor::getPathNetworkOnDelaunayMesh() and inspect FlipEdgeNetwork::delaunayRefine(), the intrinsic mesh, and vertexLocations. Compare the refined mesh and interpolated positions with the original image and determine whether the observed edge changes are expected. Done means the behavior is explained and, if it is a bug, a focused regression test and correction are identified.
索引モデルが issue の本文から書いたものです。
説明
I'm trying to compute a new mesh from the intrinsic triangulation, but results are not quite as expected. Any clue why some triangles near right edges are being modified like this? Below is the code I'm using to generate a new mesh on which the geodesic path are all surface points on vertices.
PathNetworkSPtr GeodesicPathExtractor::getPathNetworkOnDelaunayMesh(double areaThresh,
size_t maxInsertions,
double angleBound) const
{
using namespace geometrycentral::surface;
//_edgeNetwork->makeDelaunay();
_edgeNetwork->delaunayRefine(areaThresh, maxInsertions, angleBound);
auto & tri = _edgeNetwork->tri;
auto newMeshCopy = tri->intrinsicMesh->copy();
const auto & vertexData = _mesh->getGeometry().vertexPositions;
auto * intrinsicMeshPtr = tri->intrinsicMesh.get();
auto * meshCopyPtr = newMeshCopy.get();
VertexData<Vector3> newPositions(*newMeshCopy);
for (auto v : newMeshCopy->vertices()) {
Vertex vi(intrinsicMeshPtr, v.getIndex());
auto spOnOrig = tri->vertexLocations[vi];
newPositions[v] = spOnOrig.interpolate(vertexData);
}
const auto vertexIndices = tri->intrinsicMesh->getVertexIndices();
std::vector<std::vector<SurfacePoint>> newPathNetwork;
newPathNetwork.reserve(_edgeNetwork->paths.size());
for (auto & path : _edgeNetwork->paths) {
const auto heList = path->getHalfedgeList();
std::vector<SurfacePoint> newSubpath;
newSubpath.reserve(heList.size() + 1);
for (auto he : heList) {
auto vA = Vertex(meshCopyPtr, vertexIndices[he.tailVertex()]);
auto vB = Vertex(meshCopyPtr, vertexIndices[he.tipVertex()]);
if (newSubpath.empty() || newSubpath.back() != vA) {
newSubpath.emplace_back(vA);
}
newSubpath.emplace_back(vB);
}
newPathNetwork.emplace_back(std::move(newSubpath));
}
newMeshCopy->compress();
auto newGeometry = std::make_unique<VertexPositionGeometry>(*newMeshCopy, newPositions);
Mesh3DBaseSPtr newMesh = std::make_shared<Mesh3DBase>(std::move(newMeshCopy), std::move(newGeometry));
return std::make_shared<PathNetwork>(std::move(newPathNetwork), newMesh);
}
- 主要言語
- C++
- スター
- 1.3k
- フォーク
- 183
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nmwsharp/geometry-central のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
nmwsharp/geometry-central#256 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
nmwsharp/geometry-central#255 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
nmwsharp/geometry-central#253 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 57/100
nmwsharp/geometry-central#247 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
nmwsharp/geometry-central#246 ·
nmwsharp/geometry-central の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
ros2/message_filters#338 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
subsurface/subsurface#4984 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
google-ai-edge/LiteRT-LM#3739 ·