Cut: resulting shape is invalid

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
Raph82
Posts: 17
Joined: Mon Feb 09, 2015 2:07 pm

Cut: resulting shape is invalid

Post by Raph82 »

Hello,

I can't remove a cube from an array in the attached file. I get a "resulting shape is invalid" error.
The file attached is a simplified version of what I'm working on, saved with FreeCAD 0.17.

A first cut "020 Chevrons Cut" was done by removing "110 Vue en coupe" from "020 Chevrons Array".
Now I want to remove "110 Vue en coupe" from "045 Isolant Array".
I've done a couple of cuts from the same cube and this is the only one which does not work.

From previous topics in the forum, I ruled out the following leads:
- not a coplanar issue
- a forced recompute had no effect
- rotate is not really applicable here and does not work anyway
- bug from an old version

I usually use this version of FreeCAD:
OS: Linux Mint 18.1 Serena
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.16.6710 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: f8eca0f9311f07c125dd6742a607724c1fa0b77c
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

I tried with this one from -daily and got the same "resulting shape is invalid" error:
OS: Linux Mint 18.1 Serena
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.17.11284 (Git)
Build type: None
Branch: master
Hash: 1854d3de696cc51c769d82f19d7d2fb1e0ce787e
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0

What am I doing wrong?
If nothing comes up I'd submit a bug report.

Thanks for your help!
Attachments
cut2.fcstd
(43.6 KiB) Downloaded 43 times
User avatar
tanderson69
Veteran
Posts: 1626
Joined: Thu Feb 18, 2010 1:07 am

Re: Cut: resulting shape is invalid

Post by tanderson69 »

turn on the bop algo check and run check geometry on your array. Bad condition.
arraySelfIntersection.png
arraySelfIntersection.png (148.15 KiB) Viewed 2654 times
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Cut: resulting shape is invalid

Post by GeneFC »

The second array "X" spacing is exactly the same as the cube "X" dimension, 575 mm. When I added a tiny amount to the array spacing the cut worked without error.

I believe it *is* a coplanar issue of some sort.

Gene
Raph82
Posts: 17
Joined: Mon Feb 09, 2015 2:07 pm

Re: Cut: resulting shape is invalid

Post by Raph82 »

Thanks to you tanderson69 and GeneFC, I now understand what happens. I'll change my array, even if I think it's supposed to work as is ;)
For future reference, there is a Wiki page explaining in more details how to turn on BOPAlgo check and how to check a part geometry.
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Cut: resulting shape is invalid

Post by bejant »

Raph82 wrote: Fri Jun 16, 2017 12:53 pm I can't remove a cube from an array in the attached file.
GeneFC wrote: Fri Jun 16, 2017 2:14 pm The second array "X" spacing is exactly the same as the cube "X" dimension, 575 mm.
And so if we toggle the Property Fuse (in Combo View > Data Tab, lower left corner of the FreeCAD window by default) of "045 Isolant Array" from False to True, Cut001 works and the model is good.
Post Reply