Rethink geometry.require<ManagedQuantityName>
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
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- 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 locating the Geometry implementations of require and the existing ensure behavior. Trace how requireCount controls recalculation and how quantities are acquired in the relevant geometry methods. Done means the API exposes the proposed ensure methods without repeatedly incrementing requireCount, with behavior covered by the repository's applicable tests.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hey,
I noticed that once you do geometry.require<ManagedQuantityName> it will increment the requireCount. This means that in every method that needs the managed quantity, requireCount will be incremented every time. This somehow feels unclean.
This also means that the managed quantity will always be automatically recalculated, unless you explicitly do geometry.unrequire<ManagedQuantityName>.
I think it would make sense to expose the ensure<ManagedQuantityName> methods. You could do require<ManagedQuantityName> once on Geometry creation, and then just use ensure<ManagedQuantityName> whenever you need the quantity, not incrementing the count every time.
What do you think?
- 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 59 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 110 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ự
-
[request] vsg/1.1.16Đang mởupstream update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
conan-io/conan-center-index#31142 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ 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
-
Độ 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
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
NVIDIA/DeepStream#78 ·