- Posts: 2419
- Thank you received: 2349
C coded dxf to g-code converter, the building process...
- Grotius
- Offline
- Platinum Member
-
Less
More
7 years 8 months ago - 7 years 8 months ago #127124
by Grotius
Replied by Grotius on topic C coded dxf to g-code converter, the building process...
Hi, i have little project update.
At the moment i have coupled the c code to glade and to opengl
I saw some difficulties in the dxf i have to solve. The autodesk dxf is really set up as a mess.
So i have to sort everything, compare everything etc. But i have time.
I am short to develop a new cad program wich sort's all the object's before saving.
The Array's are fun to work with. We can do array's up to 9 axis, over millions of lines into the heap. :woohoo:
At the moment i have coupled the c code to glade and to opengl
I saw some difficulties in the dxf i have to solve. The autodesk dxf is really set up as a mess.
So i have to sort everything, compare everything etc. But i have time.
I am short to develop a new cad program wich sort's all the object's before saving.
The Array's are fun to work with. We can do array's up to 9 axis, over millions of lines into the heap. :woohoo:
Last edit: 7 years 8 months ago by Grotius.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- Grotius
- Offline
- Platinum Member
-
Less
More
- Posts: 2419
- Thank you received: 2349
7 years 7 months ago - 7 years 7 months ago #128382
by Grotius
Replied by Grotius on topic C coded dxf to g-code converter, the building process...
Hi, I have a project update. It's not much.
I had to study OpenGL in the past 2 weeks, because glut is a OpenGL pop up screen.
And we want integrated solution for the DxfDecode program.
It was hard to connect OpenGL to a c coded gui in glade.
But it works after trail and error. I am positive about the 3d functionality. Mouse function's and several button's are
interactive with the object rotation speed, zoom, etc.
In the mean time i tried QT for C coding instead of their integrated C++ coding.
In the first place. QT is very powerfull. Wtf. this is a huge program.
So maybe i will try to adapt my c code to QT and make a gui with .ui extension instead of .glade.
I realize the DxfDecode source code is still a very powerfull piece of code.
So soon is the moment to put everything to one program. But i have one issue to solve.
In the contour recognize it's very hard to declare cw or ccw. I made different patron's that are looking 5 corners forward to declare
if it's a cw or ccw object. It works for 90% of the objects. But i must find a way that it works for 100% of the object output.
I am positive about my adventure in linux. Linux is power to the max !
You can test the OpenGL cube application. Let me know if it works please. It's a test without source code, just like windows :laugh:
start commando in terminal : ./gtk3-opengl
or if it wont do the job paste in terminal : MESA_GL_VERSION_OVERRIDE=4.5 MESA_GLSL_VERSION_OVERRIDE=450 ./gtk3-opengl
I had to study OpenGL in the past 2 weeks, because glut is a OpenGL pop up screen.
And we want integrated solution for the DxfDecode program.
It was hard to connect OpenGL to a c coded gui in glade.
But it works after trail and error. I am positive about the 3d functionality. Mouse function's and several button's are
interactive with the object rotation speed, zoom, etc.
In the mean time i tried QT for C coding instead of their integrated C++ coding.
In the first place. QT is very powerfull. Wtf. this is a huge program.
So maybe i will try to adapt my c code to QT and make a gui with .ui extension instead of .glade.
I realize the DxfDecode source code is still a very powerfull piece of code.
So soon is the moment to put everything to one program. But i have one issue to solve.
In the contour recognize it's very hard to declare cw or ccw. I made different patron's that are looking 5 corners forward to declare
if it's a cw or ccw object. It works for 90% of the objects. But i must find a way that it works for 100% of the object output.
I am positive about my adventure in linux. Linux is power to the max !
You can test the OpenGL cube application. Let me know if it works please. It's a test without source code, just like windows :laugh:
start commando in terminal : ./gtk3-opengl
or if it wont do the job paste in terminal : MESA_GL_VERSION_OVERRIDE=4.5 MESA_GLSL_VERSION_OVERRIDE=450 ./gtk3-opengl
Last edit: 7 years 7 months ago by Grotius.
The following user(s) said Thank You: chimeno
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
-
Less
More
- Posts: 22011
- Thank you received: 7491
7 years 7 months ago #128402
by tommylight
Replied by tommylight on topic C coded dxf to g-code converter, the building process...
It works! Nice.
Please Log in or Create an account to join the conversation.
- Grotius
- Offline
- Platinum Member
-
Less
More
- Posts: 2419
- Thank you received: 2349
7 years 7 months ago - 7 years 7 months ago #128406
by Grotius
Replied by Grotius on topic C coded dxf to g-code converter, the building process...
Hi Tommy,
I have client for you in your country for milling machine.
He called me last week, i forgot his number. Are you interested?
In Servia taxes are upgraded 2 weeks ago i mentioned from other client.
Hmm. Your country is still the best to avoid taxes.
In serbia tax policy is as follows:
VAT is 20%.
At the end of the year, all your profit is taxed with 15%. If you want to take that money from the bank, you need to pay 15% more.
Conclusion: you pay 15% if your profit stay in your company. 30% if you want to take your profit (cash).
Tommy, do you see the flickering of the screen? Did you start up with the short startup or the long one?
The way of programming this way is compatible with displaying a hologram. OpenGL don't use any measurement's like
inches or mm. It's all relative.
I have client for you in your country for milling machine.
He called me last week, i forgot his number. Are you interested?
In Servia taxes are upgraded 2 weeks ago i mentioned from other client.
Hmm. Your country is still the best to avoid taxes.
In serbia tax policy is as follows:
VAT is 20%.
At the end of the year, all your profit is taxed with 15%. If you want to take that money from the bank, you need to pay 15% more.
Conclusion: you pay 15% if your profit stay in your company. 30% if you want to take your profit (cash).
Tommy, do you see the flickering of the screen? Did you start up with the short startup or the long one?
The way of programming this way is compatible with displaying a hologram. OpenGL don't use any measurement's like
inches or mm. It's all relative.
Last edit: 7 years 7 months ago by Grotius.
Please Log in or Create an account to join the conversation.
- pl7i92
- Offline
- Platinum Member
-
Less
More
- Posts: 1872
- Thank you received: 358
7 years 7 months ago #128429
by pl7i92
Replied by pl7i92 on topic C coded dxf to g-code converter, the building process...
did you get a look into camotics it works fine as a simulator
and Question is there a support for G41/G42 CRC offsets into the CCode project ir will it be like Estlcam only zero path direct milling support
and Question is there a support for G41/G42 CRC offsets into the CCode project ir will it be like Estlcam only zero path direct milling support
The following user(s) said Thank You: Grotius
Please Log in or Create an account to join the conversation.
- Grotius
- Offline
- Platinum Member
-
Less
More
- Posts: 2419
- Thank you received: 2349
7 years 7 months ago - 7 years 7 months ago #128691
by Grotius
Replied by Grotius on topic C coded dxf to g-code converter, the building process...
Hi,
Question is there a support for G41/G42 CRC offsets into the CCode project
Yes, toolpath offsets G41/G42 is one of the key concepts.
The difficulty is because there is no logic in the dxf available to see if it's a cw or a ccw contour, so you have to write your own logic.
But at the moment i started the project with QT designer intead of Glade. I had too much trouble with Glade to use Opengl function's. In fact i was busy for 2 weeks only to get OpenGL working in Glade. After some testing and compiling i realised this is not the way.
Glut with c works very good. But Glut is a pop up screen.
I realised a QT project written in C++ with OpenGL working to draw some lines.
My existing C code project is integrated in the project. So it seem's easy to combine C and C++ code.
At the moment i am busy to display the dxf array's to the screen display. This i have to find out in coming day's.
It look's easy, but OpenGL has many booby trap's.
The QT screen designer is nice, it makes your connection's to your code so easy...
And the project structure. You see the cpp (C++) files and the c files in the same project.
So i have to learn QT a little bit and stay on to make some progress !! :woohoo:
Question is there a support for G41/G42 CRC offsets into the CCode project
Yes, toolpath offsets G41/G42 is one of the key concepts.
The difficulty is because there is no logic in the dxf available to see if it's a cw or a ccw contour, so you have to write your own logic.
But at the moment i started the project with QT designer intead of Glade. I had too much trouble with Glade to use Opengl function's. In fact i was busy for 2 weeks only to get OpenGL working in Glade. After some testing and compiling i realised this is not the way.
Glut with c works very good. But Glut is a pop up screen.
I realised a QT project written in C++ with OpenGL working to draw some lines.
My existing C code project is integrated in the project. So it seem's easy to combine C and C++ code.
At the moment i am busy to display the dxf array's to the screen display. This i have to find out in coming day's.
It look's easy, but OpenGL has many booby trap's.
The QT screen designer is nice, it makes your connection's to your code so easy...
And the project structure. You see the cpp (C++) files and the c files in the same project.
So i have to learn QT a little bit and stay on to make some progress !! :woohoo:
Last edit: 7 years 7 months ago by Grotius.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 1.425 seconds