Search found 33 matches

Go to advanced search

by clel
Wed Dec 18, 2019 3:34 pm
Forum: Python scripting and macros
Topic: STL (Mesh) voxelization to Array
Replies: 3
Views: 165

Re: STL (Mesh) voxelization to Array

Thanks for mentioning it. Unfortunately that seems to be too far away for me to achieve, since it is not exposed to Python and also I don't have an idea how to use it for grid generation from Mesh files and afterwards storing its values to an Array. Probably a method like used in the thread I linked...
by clel
Wed Dec 18, 2019 3:25 pm
Forum: Python scripting and macros
Topic: Using the API
Replies: 25
Views: 886

Re: Using the API

The problem is probably that this is not what I meant with Python documentation. But good to know that it is not lacking entirely. However it seems that all inherited classes from C classes are not there unfortunately, while I showed you that the documentation itself is present at a different place....
by clel
Fri Dec 06, 2019 10:47 am
Forum: Python scripting and macros
Topic: Using the API
Replies: 25
Views: 886

Re: Using the API

... Then I misunderstood it when I read that. It is rather frustrating not to have any documentation available online for those generated Python classes. I think it is important to have it, since it is needed for Python scripting. There is no way that I know to easily find out the corresponding C++...
by clel
Thu Dec 05, 2019 2:25 pm
Forum: Python scripting and macros
Topic: STL (Mesh) voxelization to Array
Replies: 3
Views: 165

STL (Mesh) voxelization to Array

I am looking into ways to process CAD data with neural networks. One way would be to voxelize the data and save it into a (numpy) array that can then be used as an input for a Keras 3D convolutional layer (for example). I thought about writing a little script that takes the input data (STL) and iter...
by clel
Thu Dec 05, 2019 12:55 pm
Forum: Help on using FreeCAD
Topic: Keyboard shortcut, View toolbar - Wireframe
Replies: 56
Views: 7610

Re: Keyboard shortcut, View toolbar - Wireframe

Already a bit outdated, but after a short search I found this Wiki page: https://www.freecadweb.org/wiki/Std_DrawStyle You can change the style with Gui.runCommand('Std_DrawStyle', 1) for example. This is an easy solution and also the other solutions mentioned here which I tested did not work for me.
by clel
Thu Dec 05, 2019 12:52 pm
Forum: Python scripting and macros
Topic: change Draw Style with python
Replies: 6
Views: 960

Re: change Draw Style with python

Already a bit outdated, but after a short search I found this Wiki page: https://www.freecadweb.org/wiki/Std_DrawStyle

You can change the style with

Code: Select all

Gui.runCommand('Std_DrawStyle', 1)
for example.

This is an easy solution and also the other solutions mentioned here did not work for me.
by clel
Thu Dec 05, 2019 11:26 am
Forum: Python scripting and macros
Topic: Using the API
Replies: 25
Views: 886

Re: Using the API

... Is efficiency really such a big concern? Well, one could strip the diagrams at first. But also uploading 5 GB like once a week should be ok imho. There might also be the ability to only upload the diff maybe with GitHub pages. That will probably drastically reduce the traffic. By efficiency, I ...
by clel
Wed Dec 04, 2019 2:59 pm
Forum: Python scripting and macros
Topic: Batch image export problem
Replies: 4
Views: 138

Re: Batch image export problem

My way is just more robust against a file that would eg. be named "aFile.stl.exportAs.STEP". ;) But I let you decide. :) That is true. However I think that case won't happen for my files, so I will stick with the current one. Actually Qt apps works with an event system that is processed through the...
by clel
Wed Dec 04, 2019 10:46 am
Forum: Python scripting and macros
Topic: Using the API
Replies: 25
Views: 886

Re: Using the API

Correct. The lead developers don't have a lot of time. So, if you'd like to help the project, why not investigate this yourself, and then come back with more concrete ideas and proposals? Alright. That would first require me to get known to your current build process and tools. A first easy proposa...
by clel
Tue Dec 03, 2019 2:36 pm
Forum: Python scripting and macros
Topic: Batch image export problem
Replies: 4
Views: 138

Re: Batch image export problem

Yes, it works now! I just used Gui.updateGui() at the end of the loop. I left the string manipulation as it is, this should not be a bottle neck, since there are not that many files to loop over. If you think that they are not nice coding style, let me know then I will change them. The updateGui() f...

Go to advanced search