glider workbench

Show off your FreeCAD projects here!
looo
Posts: 2655
Joined: Mon Nov 11, 2013 5:29 pm

glider workbench

Postby looo » Fri Dec 11, 2015 4:56 pm

Announcing the glider workbench, a gui for OpenGlider in freecad. Development is still ongoing, but I thought it is time to show the development state. If someone is interested in testing or developing I can give instructions on how to install OpenGlider and this workbench.
Image
User avatar
DeepSOIC
Posts: 6639
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: glider workbench

Postby DeepSOIC » Fri Dec 11, 2015 6:13 pm

Cool!
At the moment, I'm not interested in it, but it' cool anyway. I wonder, how many purpose-specific workbenches are out there.
triplus
Posts: 8422
Joined: Mon Dec 12, 2011 4:45 pm

Re: glider workbench

Postby triplus » Fri Dec 11, 2015 9:52 pm

Looking good.
jmaustpc
Posts: 9515
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: glider workbench

Postby jmaustpc » Sat Dec 12, 2015 10:56 am

that is really interesting :)
User avatar
yorik
Site Admin
Posts: 11371
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: glider workbench

Postby yorik » Sat Dec 12, 2015 2:46 pm

VERY nice looo! The code looks very clean too, congrats
looo
Posts: 2655
Joined: Mon Nov 11, 2013 5:29 pm

Re: glider workbench

Postby looo » Mon Dec 14, 2015 5:12 pm

Thanks for the replies. I will post updates, but the development will take time. And at the moment it isn't sure which front end we will choose. We do not use many things from freecad right now. Mostly the workbench uses pivy and qt. But as I have seen some fem visualisation tools arriving and the latest calculix has announced to support membrane elements, there will be some good things we can use from freecad.

Does anyone know if occ has some functionality to unwrap develop able and non develop able surfaces? This would be another useful tool for us.
User avatar
microelly2
Posts: 4319
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: glider workbench

Postby microelly2 » Wed Dec 16, 2015 2:18 pm

I have integrated your workbench into the pluginloader
There are some specials I do not understand
import freecad_glider cannot work inside the same directory, to get the path
I have added an empty file freecad_glider.py to the directory freecad_glider
I load this file to get the __file__ variable then I have to load tools .

This is my modified InitGui.py

Code: Select all


    def Initialize(self):
        import tools

        Gui.addCommand('CreateGlider', tools.CreateGlider())


Can you check it for your? If you commit it into your git - the workbench is integrated.
https://github.com/microelly2/freecad-p ... 3e1ee947b7
bn_816.png
bn_816.png (81.71 KiB) Viewed 13941 times
looo
Posts: 2655
Joined: Mon Nov 11, 2013 5:29 pm

Re: glider workbench

Postby looo » Wed Dec 16, 2015 4:30 pm

thanks for your efforts.
import freecad_glider cannot work inside the same directory, to get the path
In my case it is working because I have the freecad_glider directory inside of /usr/lib/freecad/Mod which is in my case part of the sys.path.
but I will change this soon.

As I have already said in another topic, I am not happy with the freecad way to add python modules. I think this has to be fixed. A solution would be to not add every package to the python path, instead only add the base directories (/usr/lib/freecad, /home/.../.FreeCAD/Mod). + changeing the shared objects to _package.so and import them in the __init__.py of the package.
User avatar
microelly2
Posts: 4319
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: glider workbench

Postby microelly2 » Wed Dec 16, 2015 9:30 pm

looo wrote: As I have already said in another topic, I am not happy with the freecad way to add python modules. I think this has to be fixed. A solution would be to not add every package to the python path, instead only add the base directories (/usr/lib/freecad, /home/.../.FreeCAD/Mod). + changeing the shared objects to _package.so and import them in the __init__.py of the package.
Yes, I agree. As the number of workbenches increases there will come conflicts. My idea was to put the extra modules (macro collections into a subdirectory where I can manager the __init__.py). But for workbenches the users want to have in the workbench list. I think there should be a discussion continued to get a robust redesign that allows the integration of community workbenches with clear defined namespaces.

seems that this is the right place for discussion: viewtopic.php?f=22&t=13238
User avatar
microelly2
Posts: 4319
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: glider workbench

Postby microelly2 » Thu Dec 17, 2015 6:14 pm

No hurry,
There are still some small problems - see this thread above.
after that finished I post how to get all installed (you need openglider too)