Skip to content

Implement BoundingSphereRadius for Simplex3#288

Open
janbridley wants to merge 13 commits into
trunkfrom
feat/simplex_bounding_sphere_radius
Open

Implement BoundingSphereRadius for Simplex3#288
janbridley wants to merge 13 commits into
trunkfrom
feat/simplex_bounding_sphere_radius

Conversation

@janbridley
Copy link
Copy Markdown
Contributor

@janbridley janbridley commented May 5, 2026

Description

Implement a minimal centered bounding sphere radius for the Simplex3 type.

@joaander -- is this correct in that we should return the origin-centered bounding sphere? Or is a local bounding sphere radius correct? The current code seems to match ConvexSurfaceMesh2d but I figured I would ask.

NOTE: if we do not care to handle NaN (which ConvexSurfaceMesh2d and ConvexPolytope do not), we can simplify the code. Performance is fine either way, but I want to make sure computing the radius for pre-overlap filtering works well.

Motivation and Context

How has this been tested?

Checklist:

  • I have reviewed the Contributor Guidelines.
  • I agree with the terms of the hoomd-rs Contributor Agreement.
  • My name is on the list of contributors (doc/src/credits.md) in the pull request source branch.
  • I have summarized these changes in release-notes.md following the established format.

@janbridley janbridley changed the base branch from trunk to feat/positive-real-ord May 5, 2026 20:11
@janbridley janbridley marked this pull request as ready for review May 5, 2026 20:12
@janbridley janbridley requested a review from joaander May 5, 2026 20:12
Base automatically changed from feat/positive-real-ord to trunk May 8, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants