PathArea broken with OCC 7.3

Here's the place for discussion related to CAM/CNC and the development of the Path module.
mlampert
Posts: 1273
Joined: Fri Sep 16, 2016 9:28 pm

PathArea broken with OCC 7.3

Postby mlampert » Thu Jun 14, 2018 5:23 pm

PathArea produces wrong paths with arcs when using OCC 7.3
Capture.PNG
Capture.PNG (34.25 KiB) Viewed 420 times
I tracked the error back to shape resulting from PathArea.makeSections - the shape returned replaces the arc with the seccant.

Code: Select all

OS: Debian GNU/Linux testing (buster)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.13964 +7 (Git)
Build type: Debug
Branch: feature/chamfer
Hash: ae078f2be5863dc77e041aa066a130e99650a75a
Python version: 2.7.15
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)
Attachments
path-area-profile.fcstd
(21.34 KiB) Downloaded 16 times
chrisb
Posts: 17445
Joined: Tue Mar 17, 2015 9:14 am

Re: PathArea broken with OCC 7.3

Postby chrisb » Thu Jun 14, 2018 8:54 pm

Is this the same as issue #3507? I could not reproduce the bug described there. Can others please confirm (or not)?

OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.13955 (Git)
Build type: Release
Branch: (HEAD detached at f90cd4a)
Hash: f90cd4a56d90408d6a0e81795c3717a03dd02064
Python version: 2.7.15
Qt version: 5.11.0
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Germany (de_DE)
mlampert
Posts: 1273
Joined: Fri Sep 16, 2016 9:28 pm

Re: PathArea broken with OCC 7.3

Postby mlampert » Thu Jun 14, 2018 9:18 pm

chrisb wrote:
Thu Jun 14, 2018 8:54 pm
Is this the same as issue #3507? I could not reproduce the bug described there. Can others please confirm (or not)?
Looks like the same issue, at least I get the same result as the op. I did not make the connection with the radius but that seems to be the deciding factor - scaling a simple test part up and down switches between correct and incorrect Profiles.

BTW - sliptonic had looked at my model using 7.1 and the issue doesn't seem to be present there - which is why I spec'ed OCC 7.3
chrisb
Posts: 17445
Joined: Tue Mar 17, 2015 9:14 am

Re: PathArea broken with OCC 7.3

Postby chrisb » Thu Jun 14, 2018 9:21 pm

I linked issue #3507 to this topic.
GeneFC
Posts: 1025
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: PathArea broken with OCC 7.3

Postby GeneFC » Thu Jun 14, 2018 11:49 pm

chrisb wrote:
Thu Jun 14, 2018 8:54 pm
Is this the same as issue #3507? I could not reproduce the bug described there. Can others please confirm (or not)?
I could not reproduce the error in that issue report either. The appearance showed the incorrect profile when I loaded the file, but as soon as I either recomputed or changed the radius the profile was correct. I could not see any problems when the radius was larger or smaller than the magic 102.5 mm.

The reporter did not give any information about his FC configuration, so it is impossible to tell if these issues are related.

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.13959 (Git)
Build type: Release
Branch: master
Hash: 2f18182b6dff87f8857787c854e39ca4d441f993
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)

Gene
hokieengr
Posts: 62
Joined: Sat Dec 31, 2016 5:09 pm

Re: PathArea broken with OCC 7.3

Postby hokieengr » Fri Jun 15, 2018 11:20 pm

I can reproduce.

If I just open your file and recompute, it does work correctly; however, because I'm having similar issues with one of my models, I deleted your Job, created a new one, added a 1/8" end mill, and profiled your piece. Same result as you and no amount of recomputing seems to fix it.
Screenshot_2018-06-15_19-19-13.png
Screenshot_2018-06-15_19-19-13.png (16.64 KiB) Viewed 361 times
Model is attached here:
path-area-profile2.fcstd
(21.58 KiB) Downloaded 18 times
Interestingly, I am not running OCC 7.3 but rather 6.9.1.oce-0.18.

OS: Ubuntu 18.04 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.13971 (Git)
Build type: Debug
Branch: master
Hash: 8e4dd8ca8496595d4718dc24c872f7ed668b2521
Python version: 2.7.15rc1
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.9.1.oce-0.18
Locale: English/UnitedStates (en_US)