Skip to content
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

PartDesign: Physical Properties such as Volume calculation not consistent #18871

Open
2 tasks done
SebastianSchafer opened this issue Jan 4, 2025 · 0 comments
Open
2 tasks done
Assignees
Labels
Mod: Part Design Related to the Part Design Workbench Status: Needs confirmation Missing confirmation from other testers Type: Bug This issue or PR is related to a bug

Comments

@SebastianSchafer
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

In some cases volume in the Part Design Body properties is not calculated properly. I have not been able to consistently reproduce it, but attached a file with 3 hollow cylinders of same dimensions all with different volume.
For the example of a hollow cylinder, the order of when the inner/outer circle in the sketch are created sometimes is causing a false calculation. The cylinders are 9mm (inner diameter) x 10mm (outer diameter) x 1m, resulting in a volume of 14.92ml (or cm3).
The bodies in the attached file have:

  • 1: 93.46ml; this was confusing because the ratio is almost 2*pi - it turns out this is the volume of the 'full outer' cylinder (i.e., not hollowed out) plus the correct volume of the hollow cylinder (78.54ml + 14.92ml = 93.46ml). This was the initial body, with the outer circle created before the inner circle, followed by a pad.
  • 2 & 3: These were created in the same matter as body1, though the volume is the correct 14.92ml
  • 4: This body shows a negative volume of -48.69ml -- this is equivalent to the volume of the hollow cylinder minus the volume of the 'full inner' cylinder. Here, the inner circle was created before the outer circle.
    volume_debug.zip

Full version info

OS: Ubuntu 24.04.1 LTS (ubuntu:GNOME/ubuntu/wayland)
Architecture: x86_64
Version: 1.1.0dev.39745 (Git)
Build type: Release
Branch: main
Hash: 6bb424b5d16adffb1896187a0725945f9635d144
Python 3.12.3, Qt 5.15.13, Coin 4.0.2, Vtk 9.1.0, OCC 7.8.1
Locale: English/United States (en_US)
Stylesheet/Theme/QtStyle: FreeCAD Light.qss/FreeCAD Light/Fusion
Installed mods: 
  * FreeCAD-themes 2024.7.24

Subproject(s) affected?

None

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@SebastianSchafer SebastianSchafer added Status: Needs confirmation Missing confirmation from other testers Status: Needs triage Missing triage labels Jan 4, 2025
@luzpaz luzpaz changed the title Physical Properties: Volume calculation not consistent PartDesign: Physical Properties such as Volume calculation not consistent Jan 5, 2025
@luzpaz luzpaz added Type: Bug This issue or PR is related to a bug Mod: Part Design Related to the Part Design Workbench and removed Status: Needs triage Missing triage labels Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mod: Part Design Related to the Part Design Workbench Status: Needs confirmation Missing confirmation from other testers Type: Bug This issue or PR is related to a bug
Projects
None yet
Development

No branches or pull requests

3 participants