View Issue Details

IDProjectCategoryView StatusLast Update
0002669PartDesignBugpublic2016-08-14 10:38
Reporterworldmaker Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
OSWindows 7 
Product Version0.16 
Fixed in Version0.17 
Summary0002669: Bad boolean operations on shapes
Descriptionthe boolean operations(common/fuse/cut) on two spheres have weird results.
Steps To Reproduce1. Open FreeCAD
2. Press the "create new document" button
3. enter the python codes:
import Part
s1 = Part.makeSphere(5, FreeCAD.Vector(5,0,0))
s2 = Part.makeSphere(5, FreeCAD.Vector(0,5,0))
s3 = s1.fuse(s2)
Part.show(s3)
FreeCADGui.SendMsgToActiveView("ViewFit")
Additional InformationOS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.7745 (Git)
Build type: Release
Branch: master
Hash: 79dcdfbc782e24bb34db882143af7ce8ebd237bd
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
TagsNo tags attached.
FreeCAD Information

Activities

worldmaker

2016-08-14 07:54

reporter  

bug.png (212,805 bytes)   
bug.png (212,805 bytes)   

wmayer

2016-08-14 10:30

administrator   ~0007267

Works without problems with:
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.8202 (Git)
Build type: Release
Branch: master
Hash: 4790648065190df1ea3a415e3293d0a05a4550ad
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0

However, with this version it does not even show a result:
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.6726 (Git)
Build type: Release
Branch: master
Hash: 8aaae0ba2225d052d580e504d73707cb60e91717
Python version: 2.7.6
Qt version: 4.8.5
Coin version: 4.0.0a
OCC version: 6.6.0

I guess it's related to the OCC version. When slightly changing the center of one sphere it works again:

import Part
s1 = Part.makeSphere(5, FreeCAD.Vector(5.0001,0,0))
s2 = Part.makeSphere(5, FreeCAD.Vector(0,5,0))
s3 = s1.fuse(s2)
Part.show(s3)

I guess that's a bug in previous OCC versions which we can't fix. It looks like the problem is that the seam edge of the one sphere touches the other sphere.

wmayer

2016-08-14 10:38

administrator   ~0007268

Can't be fixed inside FreeCAD, you must upgrade to a newer OCC version. It works at least from v7.0.0.

Issue History

Date Modified Username Field Change
2016-08-14 07:54 worldmaker New Issue
2016-08-14 07:54 worldmaker File Added: bug.png
2016-08-14 10:30 wmayer Note Added: 0007267
2016-08-14 10:38 wmayer Note Added: 0007268
2016-08-14 10:38 wmayer Status new => closed
2016-08-14 10:38 wmayer Resolution open => no change required
2016-08-14 10:38 wmayer Fixed in Version => 0.17