Calling FlipEdgeNetwork::delaunayRefine() doesn't seem to preserve the shape of the original mesh
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- cpp
- Ambito
- computer-graphics
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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);
}
- Lingua principale
- C++
- Stelle
- 1.3k
- Fork
- 183
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nmwsharp/geometry-central
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
nmwsharp/geometry-central#256 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
nmwsharp/geometry-central#255 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
nmwsharp/geometry-central#253 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
nmwsharp/geometry-central#247 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
nmwsharp/geometry-central#246 ·
Tutte le issue di nmwsharp/geometry-central
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Component: GLib
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
brave/brave-browser#59300 ·
-
Mute ydb/tests/functional/dstool/test_canonical_requests.py.Test.test_group_take_snapshot in main Apertaai_reviewed
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
ydb-platform/ydb#53974 · 3 commenti ·