Skip to content

Fix Calculation of Compound Center of Masses #1822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 13, 2025
Merged

Conversation

XeuTap
Copy link
Contributor

@XeuTap XeuTap commented Apr 25, 2025

The problem is described in the #1817

  • Reimplement the Center method of a compound.
  • Add a new utility method that inspects the compound for the highest-order topological shape.
  • Add test case.

XeuTap added 5 commits April 24, 2025 10:57
It now supports an optional argument that helps correctly analyze the shape.
Reimplemented Center of a Compound class
The test case compares the center of mass of a compound consisting of faces with the expected value
Copy link

codecov bot commented May 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.62%. Comparing base (8c68faa) to head (24f72db).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1822      +/-   ##
==========================================
+ Coverage   95.54%   95.62%   +0.07%     
==========================================
  Files          28       28              
  Lines        7319     7353      +34     
  Branches     1102     1111       +9     
==========================================
+ Hits         6993     7031      +38     
+ Misses        195      193       -2     
+ Partials      131      129       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@adam-urbanczyk adam-urbanczyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I simplified the and made CI pass.

@adam-urbanczyk adam-urbanczyk requested a review from jmwright May 11, 2025 17:33
Copy link
Member

@jmwright jmwright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @adam-urbanczyk !

@jmwright jmwright merged commit 8e67848 into CadQuery:master May 13, 2025
5 checks passed
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.

3 participants