#garfield Logs
Oct 31 2018
#garfield Calendar
01:29 PM Tom_itx: oh rue_mohr one more thing while we're on the topic.........
01:33 PM Tom_itx: http://www.cnc-toolkit.com/
01:33 PM furrywolf: ... is that page supposed to be black on dark grey?
01:33 PM furrywolf: body {
01:33 PM furrywolf: background-color: #999999;
01:33 PM furrywolf: }
01:35 PM furrywolf: that's some of the worst web design I've seen in a while...
08:14 PM rue_mohr: I'm writing this cam program
08:55 PM Tom_itx: rue_mohr, shall i find another example to distract you?
08:56 PM rue_mohr: no, thanks
08:56 PM rue_mohr: but I'm interested if you find anything that works and runs on linux
08:56 PM Tom_itx: aww
08:56 PM rue_mohr: I'm making good progress,
08:56 PM Tom_itx: i thought that would but i guess that was a windows addin
08:57 PM rue_mohr: I have a bit of a conundram with updating the drawing area
08:57 PM Tom_itx: have you ever looked at the linuxcnc addin functions for it?
08:57 PM rue_mohr: my goal is a cam program
08:58 PM rue_mohr: not a utility function :)
08:58 PM Tom_itx: they output gcode
08:59 PM rue_mohr: can I load a dxf, click on 4 line segments that form a rounded square, and say "pocket to a depth of 5mm"
08:59 PM rue_mohr: then go back later and say "no, I meant 15mm"
08:59 PM rue_mohr: without having to reselect the segments that produced its boundries
08:59 PM rue_mohr: and hand edit the old gcode out
09:00 PM rue_mohr: or restart cause the program crashed
09:01 PM Tom_itx: what about tool offsets?
09:01 PM Tom_itx: i broke my .125 so i need to finish it with a .1875 now
09:01 PM rue_mohr: yea, it has to take into account the size of the bit I say the pocket is being done with
09:02 PM rue_mohr: Tom_itx, :/
09:02 PM Tom_itx: no, i'm just saying...
09:02 PM rue_mohr: I'm gonna start with drilling holes
09:02 PM Tom_itx: i haven't milled anything since i did the encoders
09:02 PM rue_mohr: oo
09:04 PM Tom_itx: https://github.com/LaserWeb/LaserWeb4
09:05 PM rue_mohr: uh
09:06 PM rue_mohr: html/javascript eh?
09:06 PM rue_mohr: will it load a dxf?
09:06 PM Tom_itx: i didn't look
09:06 PM Tom_itx: i dunno
09:06 PM rue_mohr: thats funny, it might
09:07 PM rue_mohr: furrywolf, dude
09:07 PM rue_mohr: https://github.com/LaserWeb/LaserWeb4 <-- your up
09:07 PM rue_mohr: give 'er a try for me
09:07 PM Tom_itx: https://sourceforge.net/directory/os:windows/?q=cad+cam+for+linux
09:08 PM rue_mohr: whereever laserweb is at, its staying, almost nothing in less than a year
09:08 PM furrywolf: what is it?
09:08 PM rue_mohr: Tom_itx, no, dude, I spent weeks searching for things, following dead links, and trying junk, I'm writing one now
09:09 PM rue_mohr: furrywolf, its an web based cam package
09:09 PM rue_mohr: try 'er out for me
09:09 PM furrywolf: how does one try it out?
09:09 PM rue_mohr: have a local apache server?
09:10 PM furrywolf: yes
09:10 PM rue_mohr: GC gc;
09:10 PM rue_mohr: Display *dpy; // = XtDisplay (widget);
09:10 PM rue_mohr: Screen *screen; // = XtScreen (parent); screen = DefaultScreen(display);
09:10 PM rue_mohr: XtAppContext app;
09:10 PM rue_mohr: Widget UI[5];
09:10 PM rue_mohr: Pixmap pixmap;
09:10 PM rue_mohr: except for this mess of global vars, my program is looking pretty good
09:10 PM furrywolf: is it seriously written in javascript? fucking hell no.
09:11 PM rue_mohr: tom swears by it
09:11 PM * rue_mohr runs away
09:12 PM furrywolf: javascript is too fucking slow to display "hello world" before you want to kill your browser, and someone is trying to do cad/cam in it?
09:12 PM * Tom_itx stabs rue_mohr with a prop sword
09:13 PM furrywolf: also...
09:13 PM furrywolf: "
09:13 PM furrywolf: This Application is built for Chrome Browser only!"
09:13 PM furrywolf: so, they can go fuck themselves.
09:13 PM Tom_itx: hah
09:13 PM furrywolf: it simply displays a completely blank white page.
09:13 PM furrywolf: in firefox.
09:14 PM rue_mohr: furrywolf, the program I'm writing is X only, it uses motif 4, think thats workable for ya?
09:14 PM rue_mohr: want to try my prototype?
09:14 PM furrywolf: does it actually do anything? :P
09:14 PM furrywolf: does it have major security bugs? :P
09:15 PM rue_mohr: well right now it just brings up the gui elements I need for testing
09:15 PM rue_mohr: no securrity bugs
09:15 PM rue_mohr: wanna see if t works on your machine?
09:15 PM rue_mohr: only tested it on a few here
09:15 PM furrywolf: ok...
09:15 PM rue_mohr: I'm fixing code from lots of horrid motif examples
09:16 PM rue_mohr: binary or the source file? it might be preferable for ya to not have to compile it
09:16 PM furrywolf: source
09:16 PM rue_mohr: 1 min
09:17 PM furrywolf: binaries rarely work on anyone else's boxes unless you know exactly how to compile them.
09:17 PM rue_mohr: http://paste.debian.net/1049919/
09:17 PM rue_mohr: gcc -lX11 -lXm -lXt main.c
09:17 PM rue_mohr: if it works, it'll bring up a multiselect list on the left, and a graphic area on the right,
09:18 PM rue_mohr: right now you can draw in it, but thats not what it'll be for
09:18 PM rue_mohr: the list lets you select colour, but thats not what It'll be for
09:19 PM * furrywolf installs lesstif headers...
09:20 PM rue_mohr: I dont know if Xm on my system is lesstif or motif
09:20 PM rue_mohr: I'v seen evidence that lesstiff has a few minor differences in the way calls turn out
09:20 PM furrywolf: seems a little buggy... it starts out drawing red, but that's not one of the options. :P
09:21 PM rue_mohr: that a feature
09:21 PM rue_mohr: It ensures that you cant get back to where you started, so you know your soemwhere else :)
09:21 PM furrywolf: lol
09:21 PM rue_mohr: add a line to main
09:22 PM rue_mohr: addToList("Red");
09:22 PM rue_mohr: those will be objects from the dxf file
09:22 PM furrywolf: too much work. :P
09:22 PM rue_mohr: sounds like it came up tho
09:22 PM furrywolf: yes, it did
09:22 PM rue_mohr: does it resize properly?
09:22 PM furrywolf: didn't try
09:22 PM rue_mohr: I was having problems with the scroll bars behaving
09:23 PM rue_mohr: it seems to be working, but required lots of hitting-with-hammer
09:23 PM furrywolf: the drawing area is a fixed size, so it shows scroll bars when the window is smaller than the drawing area, and blank grey around it when the window is larger than the drawing area.
09:23 PM rue_mohr: yes
09:24 PM rue_mohr: I'm going for the gold, and in the process, I'm currently ignoring the dynamic drawing area size
09:24 PM rue_mohr: thats easy to sort out later
09:24 PM rue_mohr: I need to get to drawing a dxf in there
09:24 PM rue_mohr: and being able to pan/zoom
09:24 PM rue_mohr: (which is why I left the drawing feature in)
09:24 PM Tom_itx: import one
09:25 PM rue_mohr: I have all the dxf libraries and the 2d libraries done
09:25 PM rue_mohr: so thats no issue
09:25 PM rue_mohr: I have to sort out the drawing area refresh
09:25 PM furrywolf: are you doing 3d, or only simple drilling/pocketing?
09:26 PM rue_mohr: I dont know how to flag the drawing area as 'dirty' to have it refreshed on the next screen update
09:26 PM rue_mohr: just drilling/milling/pocketing
09:26 PM rue_mohr: I have the code done wto generate the drilling
09:26 PM rue_mohr: the next will be engraving
09:26 PM rue_mohr: then profiling in/out
09:27 PM rue_mohr: then pocketing (dear god how do I fill a poly)
09:27 PM furrywolf: what linux really needs is a simultaneous 5-axis cam...
09:27 PM rue_mohr: sure, sure, lets start with 2d
09:27 PM furrywolf: :P
09:27 PM rue_mohr: 21 years dude
09:27 PM rue_mohr: wtf
09:27 PM Tom_itx: naw jump in head first
09:28 PM rue_mohr: how is it that there are _0_ cam programs for linux in 21 years?
09:28 PM Tom_itx: 5 axis cradle or mill head?
09:29 PM furrywolf: I started writing one... the first step, and as far as I got, was to model the current shape of the stock, and subtract cutter-shaped bits from it, so it would know what was left to remove.
09:29 PM Tom_itx: rue_mohr because linuxcnc was in it's very infancy back then
09:29 PM furrywolf: Tom_itx: both, as an option.
09:29 PM Tom_itx: i knew a couple ppl working on it way back then
09:29 PM rue_mohr: I was doing cnc with qbasic
09:29 PM rue_mohr: I was gonna write a qbasic cam program
09:30 PM rue_mohr: cadcam no less
09:30 PM rue_mohr: I'm just so frustrated that I talked myself out of it
09:30 PM furrywolf: I went with a giant octree, because it would let me model arbitrarly weird shapes... not sure it was the best idea, compared to a mesh, but it should work...
09:30 PM Tom_itx: how long have i known you?
09:30 PM * rue_mohr looks at furrywolf
09:31 PM rue_mohr: 'you'?
09:31 PM Tom_itx: yeah you
09:31 PM rue_mohr: since about 2001
09:31 PM rue_mohr: -1yr +3yrs
09:31 PM Tom_itx: i forget when i migrated from chatjunkies
09:31 PM rue_mohr: (+-)
09:32 PM rue_mohr: hmm, wonder if we met in electronics or robotics
09:32 PM Tom_itx: no clue
09:32 PM rue_mohr: I tried to start #robotics back in like 2000 (1999?) but nobody joined
09:33 PM rue_mohr: I left,a nd like 3 years later it was a teaming channel
09:50 PM furrywolf: I wish reading the news didn't always help convince me that democracy can never work.
11:16 PM rue_mohr: wow I hear things so clearly as I'm dozing off
11:16 PM rue_mohr: not real things
11:38 PM furrywolf: bbl, wolfy bedtime
11:38 PM rue_mohr: ni
11:39 PM zhanx: hi
11:40 PM zhanx: feel asleep again trick or treating
11:40 PM zhanx: seems i am sleeping a lot lately
11:41 PM rue_mohr: mhm
11:41 PM zhanx: and i have to be up in a few hours
11:43 PM zhanx: Replicas is a new movie out, they are coping the brain of a dead person to a robor
11:43 PM zhanx: robot
11:43 PM rue_mohr: mhm
11:44 PM rue_mohr: I think if you dont get it in 5 mins its gone
11:44 PM zhanx: watching it now, the brain was 7. 39 minutes old for the movie
11:44 PM zhanx: 7 hours
11:52 PM rue_bed: what kinda device are they using to get the data from the brain?
11:52 PM rue_bed: mri? helmet?