Calling FlipEdgeNetwork::delaunayRefine() doesn't seem to preserve the shape of the original mesh
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- cpp
- Lĩnh vực
- computer-graphics
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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);
}
- Ngôn ngữ chính
- C++
- Star
- 1.3k
- Fork
- 183
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nmwsharp/geometry-central
-
warning: control reaches end of non-void function in VectorHeatMethodSolver::computeLogMapCó thể đã có người làm @dyollb đã nhận 64 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
nmwsharp/geometry-central#256 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
nmwsharp/geometry-central#258 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
nmwsharp/geometry-central#255 · 1 bình luận ·
-
FlipEdgeNetwork::iterativeShorten() hangs on a contractible closed loopCó thể đã có người làm @designbynumbers đã nhận 115 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
nmwsharp/geometry-central#253 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 57/100
nmwsharp/geometry-central#247 ·
Tất cả issue của nmwsharp/geometry-central
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
bitcoin-core/gui-qml#1030 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
tesseract-robotics/tesseract#1384 ·
-
Fix the silent drop of oversized clusters in the plain EuclideanClusterObjectDetectorCó thể đã có người làm @xmfcx đã nhận hôm nay. Đang mởcomponent:perception type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
autowarefoundation/autoware_core#1497 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
agent:WSL bug linux LOW
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Build failure: limoĐang mở0.kind: build failure
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày