simple linux cam

More
4 years 6 months ago #240230 by Reinhard
Replied by Reinhard on topic simple linux cam
Hi,

for those who like to give it a try ...
I published the sources

Please Log in to join the conversation.

More
4 years 6 months ago #240232 by HansU
Replied by HansU on topic simple linux cam
Nice! Where?

Please Log in to join the conversation.

More
4 years 6 months ago #240233 by Reinhard
Replied by Reinhard on topic simple linux cam
Oups - sorry! I thought, I already posted the repo location.

Just updated first post

Please Log in to join the conversation.

More
4 years 6 months ago #240371 by Reinhard
Replied by Reinhard on topic simple linux cam
Hi,

the next hurdle has been taken. I wanted to mill the open pockets.

Attachment not found



The least effort for the user seemed to me to cut the model horizontally and derive the contour from that.
However, the parallel contours were not suitable as a tool path.

Attachment not found



So - roll up my sleeves and spit into my hands ...

Although opencascade provides the tools to edit a curve, it was not possible for me to get the desired result. So I had to cut the curves myself. In doing so, I had to realize that opencascade creates completely chaotic curves. Different directions and completely different start and end point ...
(green is the first segment, red the last - contour with two green segment means first and last segment of the curve)

Attachment not found



So I had to create my own data structure to get reliable results. This was a challenge for my gray cells, but I think I finally skinned the cat. (The steps in the rapid [cyan] are only for debugging)

Attachment not found


 

Please Log in to join the conversation.

More
4 years 6 months ago #240386 by HansU
Replied by HansU on topic simple linux cam
I got a bit stuck when trying to build your code.
It complains about some libs, but I have them, for example:
Code:
-- Up-to-date: /usr/local/lib/libTKXSBase.so.7 -- Up-to-date: /usr/local/lib/libTKXSBase.so
Can you may give me a hint? I am running Ubuntu 18. Thanks!

Code:
$ cmake -S . -B build CMake Error at CMakeLists.txt:7 (include):   include could not find load file:     Interface CMake Warning at CMakeLists.txt:22 (find_package):   Found package configuration file:     /usr/local/lib/cmake/opencascade/OpenCASCADEConfig.cmake   but it set OpenCASCADE_FOUND to FALSE so package "OpenCASCADE" is   considered to be NOT FOUND.  Reason given by package:   The following imported targets are referenced, but are missing: TKXSBase   TKSTEPBase TKSTEP TKIGES TKSTL TKVRML TKXCAF TKRWMesh TKXDEIGES TKXDESTEP   TKBinXCAF TKXmlXCAF CMake Error at src/CMakeLists.txt:5 (include):   include could not find load file:     Interface CMake Error at src/CMakeLists.txt:61 (use_interface_libraries):   Unknown CMake command "use_interface_libraries". -- Configuring incomplete, errors occurred!
 

Please Log in to join the conversation.

More
4 years 6 months ago #240387 by Reinhard
Replied by Reinhard on topic simple linux cam
Hi,

you'll find Interface.cmake in sample subdirectory. When you open the file, the comment at the beginning tells, what to do.
When the file is found, the rest should work as designed.
Opencascade stil rises some warnings. Just ignore them.

I get similar warnings and i.e. as TKStep is reported as missing, loading of stepfiles works without issue.

Take a look at src/CMakeLists.txt - there's a private include directory for cavaliercontours . That's a header only library, so just change the path the the location where your copy of cavaliercontours is.

Please Log in to join the conversation.

More
4 years 6 months ago #241392 by HansU
Replied by HansU on topic simple linux cam
So the first warning can be ignored you mean?
But what is wrong with the others? Some dependencies missing?
Code:
$ cmake -S . -B build CMake Warning at CMakeLists.txt:22 (find_package):   Found package configuration file:     /usr/local/lib/cmake/opencascade/OpenCASCADEConfig.cmake   but it set OpenCASCADE_FOUND to FALSE so package "OpenCASCADE" is   considered to be NOT FOUND.  Reason given by package:   The following imported targets are referenced, but are missing: TKXSBase   TKSTEPBase TKSTEP TKIGES TKSTL TKVRML TKXCAF TKRWMesh TKXDEIGES TKXDESTEP   TKBinXCAF TKXmlXCAF processing target: kuteCAM  - add interface lib: IFQt  - add interface lib: IFOpenCASCADE  - add interface lib: IFStandard -- Configuring done CMake Error at src/CMakeLists.txt:6 (add_executable):   Target "kuteCAM" links to target "Qt::Gui" but the target was not found.   Perhaps a find_package() call is missing for an IMPORTED target, or an   ALIAS target is missing? CMake Error at src/CMakeLists.txt:6 (add_executable):   Target "kuteCAM" links to target "Qt::GuiPrivate" but the target was not   found.  Perhaps a find_package() call is missing for an IMPORTED target, or   an ALIAS target is missing? ...

Please Log in to join the conversation.

More
4 years 6 months ago #241427 by Reinhard
Replied by Reinhard on topic simple linux cam
Hi,

I'm no expert. Neither with qt, nor with opencascade - so I can't tell you, what's right.
I only can tell, how things works for me.
I use debian stable and opencascade stuff works with dev-packages from debian as well as self compiled variant from git.
With qt I had lot of starting troubles, especially when I switched to cmake. I have several qt installations of different versions - installed by qt binary installer.
Opencascade has troubles with qt6 so I stayed with qt5 - which actually is 5.12.11 on my system.
I wrote the interface.cmake extension, cause I had troubles to use the qt-toolkit I want.

You should NOT ignore the qt-warnings. I guess you use dev-libs from your linux box. May be you need to install some more qt-libs? Don't know.
When I realized the ease of use of the qt-online installer, I never tried system stuff again.

... by the way: I removed all cavaliercontour stuff from kutecam. So one dependency less :)

Please Log in to join the conversation.

More
4 years 6 months ago #241664 by MTronics
Replied by MTronics on topic simple linux cam
Hello Reinhard,

you are creating a very interesting project. Maybe you want to consider working along FreeCad for a CAD model base on which you add your CAM functionality. FreeCad is getting a bit of momentum and, from my point of view, lacks on the integration of the CAM side, although there is a rudimentary Path (CAM) workbench available.

Greetings

Stefan

Please Log in to join the conversation.

More
4 years 6 months ago #241683 by tommylight
Replied by tommylight on topic simple linux cam
I have to agree with Stefan.

Please Log in to join the conversation.

Time to create page: 0.086 seconds
Powered by Kunena Forum