Cut not entirely working on array

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!
Post Reply
kennes
Posts: 5
Joined: Fri Feb 03, 2017 12:47 pm

Cut not entirely working on array

Post by kennes »

Hi,

I'm encountering a very strange problem with freecad,
When i cut between a 2 compounds and 1 of them is an array, the cut only applies on 1 or 2 parts of the array.
On the joint screenshot 3 parts of the array should be cut the same way, but you can see that the last one only shows
a line of cut but is not effectively cut.
I tried converting them to compounds, not converting them also, doesn't change anything :/
(in the fcstd file, the Cut006 is the cut that doesnt work)

Do you have an idea ?

Thanks a lot :)
Cheers,

Freecad version :

OS: "Arch Linux"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.Unknown
Build type: Release
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1
Attachments
Screenshot_20170328_204641.png
Screenshot_20170328_204641.png (18.6 KiB) Viewed 1401 times
topcover.fcstd
(553.65 KiB) Downloaded 21 times
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Cut not entirely working on array

Post by DeepSOIC »

Confirmed.
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10647 (Git)
Build type: Release
Branch: master
Hash: 7901cf7ad28952173ec8e2a55c39e8eb5c441e3c
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0

This is quite unusual, as all intersections are well defined, and it's rarely a problem for OCC.
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: Cut not entirely working on array

Post by chrisb »

I remember something similar in the Path WB with finding drilling holes. It seemed as if the first object is somehow doubled.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
tanderson69
Veteran
Posts: 1626
Joined: Thu Feb 18, 2010 1:07 am

Re: Cut not entirely working on array

Post by tanderson69 »

I did a complete recompute with occt 7.1 and it fixes the problem.

Why the feature 'Compound'. It just creates a nested compound as Cut005 is already a compound. See picture. I see you did the same thing with 'Extrude001' and 'Compound002'. You shouldn't need to wrap a single feature in a compound. Try your cut operations directly on 'Cut005' and 'Extrude001' and see if that behaves.
topCoverCompound.png
topCoverCompound.png (181.31 KiB) Viewed 1338 times
kennes
Posts: 5
Joined: Fri Feb 03, 2017 12:47 pm

Re: Cut not entirely working on array

Post by kennes »

Hi,
Thanks for your answers,
In fact, i already tried without any compound and it doesn't change anything (I added the compounds in the first place to try to fix it)

Cheers,
User avatar
tanderson69
Veteran
Posts: 1626
Joined: Thu Feb 18, 2010 1:07 am

Re: Cut not entirely working on array

Post by tanderson69 »

kennes wrote:Hi,
Thanks for your answers,
In fact, i already tried without any compound and it doesn't change anything (I added the compounds in the first place to try to fix it)

Cheers,
Sorry. I didn't absorb the whole 'compound' explanation in your original post.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Cut not entirely working on array

Post by NormandC »

After deleting Cut006, Compound and Compound002, then creating a new Part Cut on Cut005 from Extrude001, the Cut succeeds on

OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6707 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 5465bc47c95db45e0be85dc0e2872419efadce0f
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
FC_kennes_topcover_01.png
FC_kennes_topcover_01.png (39.6 KiB) Viewed 1260 times
It also works with the original file if I do a force recompute (Macro ForceRecompute).
tanderson69 wrote:I did a complete recompute with occt 7.1 and it fixes the problem.
I confirm on

OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10646 (Git)
Build type: None
Branch: (detached from 732bd85)
Hash: 809758b7395f8e591a8a196459bf5a014a864aaf
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0

I find it odd that it doesn't work on OCCT 7.0.0...

6.8.0 --> working
6.9.1 --> not working
7.0.0 --> not working
7.1.0 --> working

:?
Attachments
topcover_working_occ680_normandc1.fcstd
(500.06 KiB) Downloaded 11 times
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Cut not entirely working on array

Post by NormandC »

That being said, there's a more efficient way to build this model that will almost certainly circumvent the issue you're having: make the Draft Array last, after applying the two cut operations on a single pipe.

IMHO, it is best to avoid applying a Boolean cut to a compound that contains separate solids. Here it is easy to avoid.
Attachments
topcover_simplified_normandc1.fcstd
(482.05 KiB) Downloaded 12 times
kennes
Posts: 5
Joined: Fri Feb 03, 2017 12:47 pm

Re: Cut not entirely working on array

Post by kennes »

Allright, thanks a lot for the hint !

I did like you said, cut and then array.
It works great !
I guess it must be some kind of bug, that seems to be resolved in later version of occ :)

Thanks all :)
Post Reply