Search found 144 matches

by etrombly
Mon Jan 04, 2021 1:41 pm
Forum: Install / Compile
Topic: Compiling with distcc (distribute + speed-up compiling FreeCAD across several machines)
Replies: 9
Views: 2708

Re: Compiling with distcc (distribute + speed-up compiling FreeCAD across several machines)

I'm running it on 3 machines, I can compile in about 30 minutes. Haven't built in a little while, I've been using the appimage. Let me verify everything is still working correctly.
by etrombly
Fri Dec 18, 2020 2:48 pm
Forum: Path/CAM
Topic: Tool controller breakage: 'cuttingEdgeAngle'
Replies: 26
Views: 3404

Re: Tool controller breakage: 'cuttingEdgeAngle'

freman wrote: Fri Dec 18, 2020 8:08 am

Code: Select all

08:02:46  Traceback (most recent call last):

<class 'AttributeError'>: 'OCL_Tool' object has no attribute 'cuttingEdgeAngle'
self.cutEdgeHeight == -1.0 ??
It's saying there is no cuttingEdgeAngle, it's not erroring on the height.
by etrombly
Thu Dec 17, 2020 3:55 pm
Forum: Install / Compile
Topic: Compiling with distcc (distribute + speed-up compiling FreeCAD across several machines)
Replies: 9
Views: 2708

Re: Compiling with distcc

Just noticed this, I use distcc with docker. On the remote machines I use the following dockerfile: FROM registry.gitlab.com/daviddaish/freecad_docker_env:latest RUN apt-get update && \ apt-get install -y \ distcc distcc-pump procps g++-6 gcc-6 && \ rm -rf /var/lib/apt/lists/* &&...
by etrombly
Tue Dec 15, 2020 1:54 pm
Forum: Path/CAM
Topic: How avoid G2 and G3 in G-code
Replies: 9
Views: 2677

Re: How avoid G2 and G3 in G-code

If you have a raspberry pi sitting around I'd highly recommend https://cnc.js.org/, it's what I use with my 3018.
by etrombly
Mon Dec 14, 2020 6:56 pm
Forum: Path/CAM
Topic: mixing c++ and python memory models.
Replies: 45
Views: 8458

Re: mixing c++ and python memory models.

Right now it is: Py::Dict CommandPy::getParameters(void) const { Py::Dict dict; for(std::map<std::string,double>::iterator i = getCommandPtr()->Parameters.begin(); i != getCommandPtr()->Parameters.end(); ++i) { dict.setItem(i->first, Py::Float(i->second)); } return dict; } You should be able to chan...
by etrombly
Mon Dec 14, 2020 5:41 pm
Forum: Path/CAM
Topic: mixing c++ and python memory models.
Replies: 45
Views: 8458

Re: mixing c++ and python memory models.

That's just how interop between languages works. The data is represented internally differently, so you have to translate it whenever you switch between c++ and python. The options to fix it are calling those functions from python as little as possible (like you said to save the parameters rather th...
by etrombly
Mon Dec 14, 2020 5:00 pm
Forum: Path/CAM
Topic: mixing c++ and python memory models.
Replies: 45
Views: 8458

Re: mixing c++ and python memory models.

Thanks very much for the input and the extra checking. Is the getter and setter for the parameters Pdict property unnecessarily cumbersome, could this be done better? This is one concrete example which was at the heart of the massive post-processor memory hog. Could you advise on that? If CXX is to...
by etrombly
Mon Dec 14, 2020 3:19 pm
Forum: Path/CAM
Topic: mixing c++ and python memory models.
Replies: 45
Views: 8458

Re: mixing c++ and python memory models.

wmayer found the bug which was causing huge memory losses but it seems the whole c++/py mix in inherently messy. Maybe some things could be improved if python guys were more aware of the guts of CXX code and how to avoid the pitfalls and limitations ( but that is probably not what python progammers...
by etrombly
Wed Oct 14, 2020 5:36 pm
Forum: Path/CAM
Topic: Scripting Path workbench
Replies: 21
Views: 5363

Re: Scripting Path workbench

I haven't created a job with python before. It would be something along the lines of: from PathScripts import PathJob job = PathJob.create("job_name", "model_object") That was giving me an error, but is pretty close to what you would need to do. Maybe someone else that has tried ...
by etrombly
Tue Sep 22, 2020 1:16 am
Forum: Path/CAM
Topic: How to change origin?
Replies: 3
Views: 2871

Re: How to change origin?

Here's a good video from sliptonic on setting up your job https://www.youtube.com/watch?v=QjlfL5IQxzI&t=226s . Setting the origin is at around the 4 minute mark.