ConvexHullMesher: Set convex flag - #32
Conversation
|
Warning Review limit reached
Next review available in: 33 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughConvexHullMesher now marks generated meshes as convex across all construction paths. VolumeMesher rejects non-convex surface meshes, and C++/Python tests plus Python documentation reflect the convex-volume requirement. ChangesConvex volume meshing
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
lib/src/VolumeMesher.cxx (1)
76-77: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd a regression test for the new convexity precondition.
Test a valid surface with
setIsConvex(false)and assertInvalidArgumentException; otherwise this new rejection contract is not protected against regression.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@lib/src/VolumeMesher.cxx` around lines 76 - 77, Add a regression test for the convexity precondition enforced in VolumeMesher: create a valid surface mesh, set its convexity to false with setIsConvex(false), and assert that constructing or invoking the relevant VolumeMesher path throws InvalidArgumentException. Keep the test focused on this rejection contract.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@python/src/VolumeMesher_doc.i`:
- Line 2: Update the method-level documentation for VolumeMesher.build to state
that the associated surface mesh must represent a convex volume and satisfy
surface.isConvex(). Keep the existing class-level description and method
behavior unchanged.
---
Nitpick comments:
In `@lib/src/VolumeMesher.cxx`:
- Around line 76-77: Add a regression test for the convexity precondition
enforced in VolumeMesher: create a valid surface mesh, set its convexity to
false with setIsConvex(false), and assert that constructing or invoking the
relevant VolumeMesher path throws InvalidArgumentException. Keep the test
focused on this rejection contract.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: a60042e2-68f8-41b7-a6e0-769270b7212c
📒 Files selected for processing (6)
lib/src/ConvexHullMesher.cxxlib/src/VolumeMesher.cxxlib/test/t_VolumeMesher_std.cxxpython/src/VolumeMesher_doc.ipython/test/t_ConvexHullMesher_std.pypython/test/t_VolumeMesher_std.py
Summary by CodeRabbit
Bug Fixes
Documentation
Tests