simple linux cam

More
14 Apr 2022 12:48 #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
The following user(s) said Thank You: silopolis

Please Log in or Create an account to join the conversation.

More
14 Apr 2022 13:56 #240232 by HansU
Replied by HansU on topic simple linux cam
Nice! Where?

Please Log in or Create an account to join the conversation.

More
14 Apr 2022 14:02 #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
The following user(s) said Thank You: HansU

Please Log in or Create an account to join the conversation.

More
16 Apr 2022 04:17 #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.


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.


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)


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)

 
Attachments:

Please Log in or Create an account to join the conversation.

More
16 Apr 2022 10:05 - 16 Apr 2022 10:06 #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:
-- 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!

$ 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!
 
Last edit: 16 Apr 2022 10:06 by HansU.

Please Log in or Create an account to join the conversation.

More
16 Apr 2022 10:41 #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 or Create an account to join the conversation.

More
27 Apr 2022 18:20 #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?
$ 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 or Create an account to join the conversation.

More
28 Apr 2022 02:44 #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 or Create an account to join the conversation.

More
29 Apr 2022 20:52 #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
The following user(s) said Thank You: silopolis

Please Log in or Create an account to join the conversation.

More
29 Apr 2022 22:01 #241683 by tommylight
Replied by tommylight on topic simple linux cam
I have to agree with Stefan.
The following user(s) said Thank You: MTronics

Please Log in or Create an account to join the conversation.

Moderators: Skullworks
Time to create page: 0.469 seconds
Powered by Kunena Forum