Creating CNC roughing and finishing passes

Here's the place for discussion related to CAM/CNC and the development of the Path module.
chrisb
Posts: 18759
Joined: Tue Mar 17, 2015 9:14 am

Re: Creating CNC roughing and finishing passes

Postby chrisb » Mon Aug 27, 2018 11:37 pm

It's more than a python file, it's a complete library. If you install it on Ubuntu make sure you don't follow the general Linux or Debian advice but the special Ubuntu guide.
prius06
Posts: 30
Joined: Thu Aug 23, 2018 6:29 pm

Re: Creating CNC roughing and finishing passes

Postby prius06 » Tue Aug 28, 2018 2:29 am

I only have a windows box at this time.
chrisb
Posts: 18759
Joined: Tue Mar 17, 2015 9:14 am

Re: Creating CNC roughing and finishing passes

Postby chrisb » Tue Aug 28, 2018 9:06 am

prius06 wrote:
Tue Aug 28, 2018 2:29 am
I only have a windows box at this time.
It seems to be available for windows as well: https://github.com/aewallin/opencamlib/ ... er/Windows.
prius06
Posts: 30
Joined: Thu Aug 23, 2018 6:29 pm

Re: Creating CNC roughing and finishing passes

Postby prius06 » Tue Aug 28, 2018 2:06 pm

chrisb wrote:
Tue Aug 28, 2018 9:06 am
]It seems to be available for windows as well: https://github.com/aewallin/opencamlib/ ... er/Windows.
I saw this but there are a number of dependencies.

I do not see that mentioned explicitly but it looks like in addition to python and boost I would also need to install Microsoft Visual studio. Is that correct? If so, is the free community edition good enough?

BTW I have cygwin installed with both python and c++. Would that allow me to build opencamlib?

Thanks!
GeneFC
Posts: 1025
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Creating CNC roughing and finishing passes

Postby GeneFC » Tue Aug 28, 2018 2:08 pm

chrisb wrote:
Tue Aug 28, 2018 9:06 am
It seems to be available for windows as well:
That link did not work for me, but it may have been improved over the past couple of years.

What did work was the prescription in the following thread:

https://forum.freecadweb.org/viewtopic.php?f=15&t=19205

One problem to be addressed in the near future is that OCL is currently built around Python 2.7. With the upcoming FreeCAD switch to Python 3.x the OCL sources will need to be adjusted.

Since the license for OCL has recently been changed to be fully compatible with FreeCAD it should become possible to distribute fully compiled versions of ocl.pyd with FreeCAD.

Gene
prius06
Posts: 30
Joined: Thu Aug 23, 2018 6:29 pm

Re: Creating CNC roughing and finishing passes

Postby prius06 » Tue Aug 28, 2018 5:23 pm

Thank you. I will try that...
prius06
Posts: 30
Joined: Thu Aug 23, 2018 6:29 pm

Re: Creating CNC roughing and finishing passes

Postby prius06 » Tue Aug 28, 2018 7:58 pm

Looking back at what I did earlier...

Is this the same library that 0.17 is using?

As I wrote earlier I enabled the experimental features there and was able to get the 3DSurface path to work and it should be using OCL. I was just missing a step over parameter which was apparently available in 0.18...

Can't I just copy the library from 0.17 into the 0.18 location?
GeneFC
Posts: 1025
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Creating CNC roughing and finishing passes

Postby GeneFC » Tue Aug 28, 2018 8:36 pm

The ocl.pyd library has not changed for several years. The same version works in FC 0.17 and FC 0.18.

The Path WB operations that use ocl.pyd have been updated in version 0.18, but the underlying library is the same.

Gene
User avatar
sgrogan
Posts: 5412
Joined: Wed Oct 22, 2014 5:02 pm

Re: Creating CNC roughing and finishing passes

Postby sgrogan » Tue Aug 28, 2018 8:48 pm

prius06 wrote:
Tue Aug 28, 2018 7:58 pm
Can't I just copy the library from 0.17 into the 0.18 location?
Yes, or direct download from here: https://github.com/sgrogan/opencamlib/r ... ag/8612634
GeneFC wrote:
Tue Aug 28, 2018 2:08 pm
One problem to be addressed in the near future is that OCL is currently built around Python 2.7. With the upcoming FreeCAD switch to Python 3.x the OCL sources will need to be adjusted.
Ugg :(
GeneFC wrote:
Tue Aug 28, 2018 2:08 pm
Since the license for OCL has recently been changed to be fully compatible with FreeCAD it should become possible to distribute fully compiled versions of ocl.pyd with FreeCAD.
I will work to include this in the future 0.18-dev versions, I should rebuild to fully respect the license change.
prius06
Posts: 30
Joined: Thu Aug 23, 2018 6:29 pm

Re: Creating CNC roughing and finishing passes

Postby prius06 » Wed Aug 29, 2018 12:50 pm

OK I got the 0.18 3D Surface to "work" but it does not do what I think it should be doing...

My tests were done with the following setup:
Cube 100x100x10 positioned at -50x-50x-x10
fused with
Torus large diameter 20 small diameter 5mm

In 0.17 a 3D Surface path with 1mm end mill looks like this:
Torus17.PNG
Torus17.PNG (93.04 KiB) Viewed 353 times
The only problem I have with the above functionality is that I cannot change the "Step Over" parameter for a smoother finish.

That parameter is available in 0.18 but...
When I create a 3D Surface path with 3 mm end mill it looks like this:
Torus18.PNG
Torus18.PNG (68.34 KiB) Viewed 353 times
Here is the same path from a different angle
Torus18_2.PNG
Torus18_2.PNG (17.36 KiB) Viewed 353 times
Yes, I can change the "Step Over" and other parameters in 0.18 but the path does not follow that contour of the fusion object at all it just makes straight lines along the stock object.

Am I doing something wrong?

Thanks