Skip to content

VV: Compute Feature Centroids full V&V'ed#1658

Merged
imikejackson merged 1 commit into
BlueQuartzSoftware:developfrom
imikejackson:vv/compute_feature_centroids
Jul 10, 2026
Merged

VV: Compute Feature Centroids full V&V'ed#1658
imikejackson merged 1 commit into
BlueQuartzSoftware:developfrom
imikejackson:vv/compute_feature_centroids

Conversation

@imikejackson

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
@imikejackson imikejackson force-pushed the vv/compute_feature_centroids branch from 0dfb283 to 8fa3837 Compare July 10, 2026 15:59
@imikejackson imikejackson merged commit ded8bf3 into BlueQuartzSoftware:develop Jul 10, 2026
6 checks passed
@imikejackson imikejackson deleted the vv/compute_feature_centroids branch July 10, 2026 16:04
imikejackson added a commit to imikejackson/simplnx that referenced this pull request Jul 15, 2026
…uartzSoftware#1665)

The periodic path applied a constant half-domain offset to the naive
centroid. That model is only correct when a wrapped feature's mass is
symmetric about the seam and can place asymmetric features outside the
domain. The prior spacing fix (BlueQuartzSoftware#1658) was necessary but not sufficient.

* Reimplement the periodic path as a minimum-image circular mean:
  accumulate per-feature unit-vector (cos/sin) sums during the cell
  sweep, and at finalize replace the arithmetic centroid with the
  circular mean on axes where the feature spans the full extent. A
  near-zero resultant (domain-filling feature) falls back to the
  arithmetic mean. Trig is only evaluated when Is Periodic is enabled.
* Remove the range-based ImageGeom overload of
  AdjustCentroidsForPeriodicFaces: per-feature index ranges are
  mathematically insufficient to compute a wrapped centroid, and it now
  has no callers.
* Re-derive periodic test fixtures D and E against an independent
  minimum-image oracle (no longer the circular constant-offset oracle),
  and add Fixture F for the domain-filling fallback. Pass in-core and OOC.
* Update the ComputeFeatureCentroids V&V report, deviations, and user
  docs to reflect the corrected model.

Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
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