Issue #7338 - Cutting a sphere results in errors after merging with other objects
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Issue #7338 - Cutting a sphere results in errors after merging with other objects
Try this:
Torus:
R1: 10mm
R2: 5mm
Angle Y -90°
Position Z: -Radius1
Sphere:
R: <<Torus>>.Radius2
Position Z: <<Torus>>.Radius1
Box:
Length: <<Sphere>>.Radius * 2
Width: <<Sphere>>.Radius
Height: <<Torus>>.Radius1 + <<Torus>>.Radius2
Position X: -Length / 2
Cylinder001:
Radius: <<Torus>>.Radius1 + <<Torus>>.Radius2 + 1mm
Height: <<Torus>>.Radius1 + <<Torus>>.Radius2 + 1mm
Position Z: -<<Torus>>.Radius1
Angle X: -90°
Cylinder002:
Radius: <<Torus>>.Radius1 + <<Torus>>.Radius2 + 1mm
Height: <<Torus>>.Radius1 + <<Torus>>.Radius2 + 1mm
Position Z: -<<Torus>>.Radius1
Angle X: 135°
Fusion001:
Merge the Cylinders
Cut001:
Cut Torus with Fusion001.
The Result should be a small segment of 45° of the Torus.
Cut002:
Cut Sphere with Box
Position Z: -<<Torus>>.Radius1
Angle X: 45°
The Result should be a half a ball on the lower side of the Torus segment.
Fusion002:
Merge Cut001 and Cut002.
Result: Nothing - Resulting Shape is invalid, internal Name Fusion002.
This is obviously a bug.
Torus:
R1: 10mm
R2: 5mm
Angle Y -90°
Position Z: -Radius1
Sphere:
R: <<Torus>>.Radius2
Position Z: <<Torus>>.Radius1
Box:
Length: <<Sphere>>.Radius * 2
Width: <<Sphere>>.Radius
Height: <<Torus>>.Radius1 + <<Torus>>.Radius2
Position X: -Length / 2
Cylinder001:
Radius: <<Torus>>.Radius1 + <<Torus>>.Radius2 + 1mm
Height: <<Torus>>.Radius1 + <<Torus>>.Radius2 + 1mm
Position Z: -<<Torus>>.Radius1
Angle X: -90°
Cylinder002:
Radius: <<Torus>>.Radius1 + <<Torus>>.Radius2 + 1mm
Height: <<Torus>>.Radius1 + <<Torus>>.Radius2 + 1mm
Position Z: -<<Torus>>.Radius1
Angle X: 135°
Fusion001:
Merge the Cylinders
Cut001:
Cut Torus with Fusion001.
The Result should be a small segment of 45° of the Torus.
Cut002:
Cut Sphere with Box
Position Z: -<<Torus>>.Radius1
Angle X: 45°
The Result should be a half a ball on the lower side of the Torus segment.
Fusion002:
Merge Cut001 and Cut002.
Result: Nothing - Resulting Shape is invalid, internal Name Fusion002.
This is obviously a bug.
Last edited by Kunda1 on Thu Nov 17, 2022 5:49 pm, edited 1 time in total.
Reason: Added GH ticket number to thread title
Reason: Added GH ticket number to thread title
- adrianinsaval
- Veteran
- Posts: 5551
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Cutting a sphere results in errors after merging with other objects
file? full freecad info?
Right now I'm too lazy to follow all these instruction but my first guess would be some sort of issue in occt's boolean operations, we know occt has it's quirks with coplanar/coincident faces or edges so it's probably that.
Right now I'm too lazy to follow all these instruction but my first guess would be some sort of issue in occt's boolean operations, we know occt has it's quirks with coplanar/coincident faces or edges so it's probably that.
- adrianinsaval
- Veteran
- Posts: 5551
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Cutting a sphere results in errors after merging with other objects
OP created issue #7338, please read and follow the guidelines and don't create github issues without getting feedback on your thread, and if you create an issue you should link it here too.
Re: Cutting a sphere results in errors after merging with other objects
Do you mind providing a file or files for us to reproduce?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Issue #7338 - Cutting a sphere results in errors after merging with other objects
bumping
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Issue #7338 - Cutting a sphere results in errors after merging with other objects
No need to bump as we still wait for @dschoni's file.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Issue #7338 - Cutting a sphere results in errors after merging with other objects
It would be nice to check if using fuzzy boolean on the shape could solve this OCC coplanar issue.
- adrianinsaval
- Veteran
- Posts: 5551
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Issue #7338 - Cutting a sphere results in errors after merging with other objects
Sample file is now available on the GitHub issue
Re: Issue #7338 - Cutting a sphere results in errors after merging with other objects
attaching the file would have avoided losing time
unfortunately fuzzy is not parametric atm (it could be done with some python code)
unfortunately fuzzy is not parametric atm (it could be done with some python code)