QT C++ code samples

More
22 Jan 2020 23:29 #155477 by tommylight
Replied by tommylight on topic QT C++ code samples
Deb install works, with a minor issue that gdebi remains unaware of it being installed, meaning after install has finished it will not change to "reinstall package", it remains as "install package".
Also if starting the install again, it is not aware that it is already installed.
It does make the menu entry under Programming.
Thank you.
The following user(s) said Thank You: Grotius

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

More
25 Jan 2020 19:55 #155751 by grijalvap
Replied by grijalvap on topic QT C++ code samples
is this project open source?
The following user(s) said Thank You: Grotius

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

More
25 Jan 2020 20:10 #155753 by tommylight
Replied by tommylight on topic QT C++ code samples

grijalvap wrote: is this project open source?

GOSL = Grotius Open Source Licence ! :)
I am sure he insists on open source everything, and IIRC he mentioned it on this thread.
The following user(s) said Thank You: Grotius

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

More
11 Feb 2020 00:39 #156988 by Grotius
Replied by Grotius on topic QT C++ code samples
Hi,

Are you intending to make this available later for OS other than Linux?
Yes yes, i am coding cross platform and using the standard lib's now. If i do so i don't have to stay with QT.

is this project open source?
I am thinking about this for a long time. The standard CadCam edition will be free to use for everyone without a time limit etc.
So if the program evolve's, and user's are happy. It may become a big software platform over time. We never know how this will work out in time.
But i am thinking about some additional future plugins like autonesting etc. If there is a coder that want's to write this plugin, i think
it's fair that this coder can ask a donation, but still the standard edition is free. Furthermore i don't like to share code while the program is not finished. Later on this year a nice CadCam version will appear !

Updates
A big issue was the spline function. I used a Cubic bezier curve as spline. This was not good. Bezier curve's have startpoints cq endpoints that can not be used by dxf files. So i had to look for a Cubic spline like this : mathworld.wolfram.com/CubicSpline.html

The math was to heavy for me to solve. I did not find any plug an play solution that are dealing with a cubic spline in relation to elapsed time. But attached a minimal c++ QT project that does a cubic spline. A nice hollander helped me a lot !!
www.wiskundeforum.nl/viewtopic.php?f=37&t=12717

At this point we can load dxf files completely very soon !! Have to integrate the spline code, and update the dxf read file code.
Then test wich autocad dxf versions are compatible. So far, that is good news.. Then the program can be used with inkscape !!

Important update
I left QT...

Started blanco with C++ Codeblocks.. So coming time i will review and update all my previous code to Codeblocks.
A lot of work to do, but i think a good choice for the future !

Therefore i will start a new topic for C++ Codeblocks. So far so good !!

Cadcam program in codeblocks, opengl working. Programming is little harder in relation to QT, less debug message's..
Attachments:
The following user(s) said Thank You: phillc54, tommylight, Clive S, BeagleBrainz

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

More
16 May 2020 21:29 #168007 by Grotius
Replied by Grotius on topic QT C++ code samples
Hi,

A short update of the Qt cadcam program until now.

I am building a new CadCam program from scratch. This is my 3rth attempt.
It will include a Cad section and a Cam section with offset operations for plasma and milling machines and it will include pocket operations for milling machines. It will be 2d.
For 3d i am a fan of Freecad.

My c++ knowledge is after one year at a more usable level. I am sure it will be nice from here.

See attached beginning program code, display.h is interesting.
Object.h is a structure style, used to store all data like lines, splines, circles, arc's etc. This is a powerfull program style with automatic memory allocation. For example, The structure style can morph a line into a spline etc.

The file input_data.h is a file wich is used to add user data.
The file display.h is used to dispay the data.

So far so good !

@grijalvap,
Yes it is open source.
Attachments:
The following user(s) said Thank You: phillc54, tommylight, Clive S

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

More
21 May 2020 21:06 #168533 by Grotius
Replied by Grotius on topic QT C++ code samples
Hi, a short update,

The contour recognize algoritme works quite nice and is almost ready.
Every object start- or endpoint within the user tollerance is calculated to
a close or open contour path with a unspecified direction, cw or ccw direction is calculated later on and before when we look
at contour depth's.

I am happy with the current programming style. See the attached source code.

Next thing to program is a pocket algoritme. I have designed the pocket algoritme on a paper several times, and i am confident it will be a usefull algoritme for linuxcnc.

The good news is, the pocket operation is capable to offset bezier curves, splines, etc. This is quite remarkable.
The spline output for Linuxcnc gcode can be selected as a G5 or as a linestrip output. This is quite easy to do for me now.

Take a look at the object open ends. The blue closed contours are within a example used tollerance. White is open contour.




Have fun with coding your C++ application.
With great power, comes great ...
Attachments:
The following user(s) said Thank You: phillc54, tommylight, Clive S

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

Time to create page: 0.156 seconds
Powered by Kunena Forum