Issue binary operation

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
wvmarle
Posts: 148
Joined: Fri Oct 17, 2014 8:09 am

Issue binary operation

Post by wvmarle »

Hi,

I have this cup-shape thing, created by rotating a closed wire (the thing is a solid), and then punching a hole through it by creating a cylinder that goes through it and making a cut with that.

When seen from the outside there appears to be a hole, but on the inside the cylinder is still there.

I've also cut a corner out of the thing, using a large cube, which does work. You can also see that the object is in fact a solid, it's not hollow inside.

This is part of a much larger project; all other parts removed, just the affected bit posted here.

Totally weird.

OS: Linux Mint 17 Qiana
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4484 (Git)
Branch: master
Hash: f72c802f5daa378298ffbfc3f3a17ec2d35c1816
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.1
Attachments
cut test.fcstd
(54.9 KiB) Downloaded 39 times
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Issue binary operation

Post by DeepSOIC »

Looks like a perfect bug. The only thing I wonder of is where is the thing that was revolved, in your file.
Interestingly, if I set the cylinder's angle to below 360 degree to get a pie, the cut works normally.

OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4320 +24 (Git)
Branch: Eivind-Expressions,origin/OpticConstraints-shoogen2 ( :oops: excuse me for not using master)
Hash: ade893f35026d2c97ee8628135472bf31c2eafad
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.1
wvmarle
Posts: 148
Joined: Fri Oct 17, 2014 8:09 am

Re: Issue binary operation

Post by wvmarle »

It's got to do with the location of that specific cylinder.
Other cylinders cut holes as expected, as do cubes...

So weird.
Attachments
cut test.fcstd
(213.78 KiB) Downloaded 32 times
wvmarle
Posts: 148
Joined: Fri Oct 17, 2014 8:09 am

Re: Issue binary operation

Post by wvmarle »

I created the revolved part in a second file (using a separate file for fiddling and creating more tricky parts and then copy/paste it into my main file).

Here again with the original wire used to create the part. It has been rotated 90° after rotation.
Attachments
cut test.fcstd
(214.67 KiB) Downloaded 35 times
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Issue binary operation

Post by DeepSOIC »

I'm not able to reproduce the problem outside of your file. I think it may be important how did you create the cup.
EDIT: (added attachment)
Attachments
cup-cut-test.FCStd
(18.72 KiB) Downloaded 37 times
User avatar
tanderson69
Veteran
Posts: 1626
Joined: Thu Feb 18, 2010 1:07 am

Re: Issue binary operation

Post by tanderson69 »

The problem was evident when I opened the file. I recalculated all the features and the problem went away. I am thinking this is specific to your version of occ. I have "OCC version: 6.8.0.oce-0.17-dev"
wvmarle
Posts: 148
Joined: Fri Oct 17, 2014 8:09 am

Re: Issue binary operation

Post by wvmarle »

I just copied the original wire to my main file, there recreated the cup by revolving it, and now it all seems to work fine. So it may also be related to the missing wire. Nevertheless it's a bug.

There's a second object in my file that also has such issues, cuts that don't work. Also created in a separate file, copy/pasted into my main project file, where the link to the original wire has been lost.
wvmarle
Posts: 148
Joined: Fri Oct 17, 2014 8:09 am

Re: Issue binary operation

Post by wvmarle »

Closely related buggy goodness.

Select Cut070, then subtract Extrude021.
Resulting image is a mess...
Attachments
cut test 2.fcstd
(48.05 KiB) Downloaded 35 times
User avatar
shoogen
Veteran
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: Issue binary operation

Post by shoogen »

wvmarle wrote:Closely related buggy goodness.

Select Cut070, then subtract Extrude021.
Resulting image is a mess...
I can see the mess, but it disappears after a complete recompute.
OS: Debian GNU/Linux 7.8 (wheezy)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4486 +191 (Git)
Branch: yorik/path-module,bugfix-draftextrude,dev-dxfsplineimport
Hash: b0f9b63e1253903d291dadf2d66376aaab1b147c
Python version: 2.7.3
Qt version: 4.8.2
Coin version: 4.0.0a
OCC version: 6.8.1.dev-6b0e8bd
wvmarle
Posts: 148
Joined: Fri Oct 17, 2014 8:09 am

Re: Issue binary operation

Post by wvmarle »

How to do such a "complete recompute"?
Post Reply