COIN3D/Pivy examples - Great list of many good examples [Job done]

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
mariwan
Posts: 469
Joined: Wed Jan 06, 2021 2:00 pm

COIN3D/Pivy examples - Great list of many good examples [Job done]

Post by mariwan »

Hi,
Today, I managed to find a great list of examples that no one in this forum could point out that for me when I was always asking for help in understanding the COIN3D.

The examples are converted to be compatible code (as macros in FreeCAD). You can copy the code and run them directly.
I have not yet converted all .. but many of them.
I will be adding the others very soon.

I hope this will help you all to be more productive in COIN3D. And please teach other what you know. We cannot push FreeCAD forward if we don't help other developers.

https://github.com/MariwanJ/COIN3D_Examples

Enjoy
Last edited by mariwan on Sat Jul 24, 2021 6:36 pm, edited 1 time in total.
User avatar
mariwan
Posts: 469
Joined: Wed Jan 06, 2021 2:00 pm

Re: COIN3D/Pivy examples - Great list of many good examples

Post by mariwan »

Hi again,
The conversion of the examples are finished.
I would like to ask you to contribute to this list of examples if you have any example files. I love to see other examples added to the list which will help all of us in understanding better, making better tools for the FreeCAD and use better the time we have to develop cleaver tools.

I hope you enjoy the conversion. And please ScreenShoots of the tools are required. You can uploaded them to my github. Give them the same name as the python file has got. Later we wish to put them and use the pictures to describe each file.
There are ongoing effort to include this work inside FreeCAD WIKI pages.

Thanks.

https://youtu.be/zkKZE351TWA
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: COIN3D/Pivy examples - Great list of many good examples [Job done]

Post by Kunda1 »

carlopav thinks code_snippets but that page is very info rich. Maybe we should create a new page and link to it from code snippets?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
mariwan
Posts: 469
Joined: Wed Jan 06, 2021 2:00 pm

Re: COIN3D/Pivy examples - Great list of many good examples [Job done]

Post by mariwan »

Kunda1 wrote: Sun Jul 25, 2021 2:07 pm carlopav thinks code_snippets but that page is very info rich. Maybe we should create a new page and link to it from code snippets?
Why not having a special page for the COIN3D.
It has nothing to do with normal usage of FreeCAD. It is more related to WB developers.

I would like to have screenshots of the scripts so developers understand what the script do.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: COIN3D/Pivy examples - Great list of many good examples [Job done]

Post by Kunda1 »

Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
mariwan
Posts: 469
Joined: Wed Jan 06, 2021 2:00 pm

Re: COIN3D/Pivy examples - Great list of many good examples [Job done]

Post by mariwan »

Kunda1 wrote: Sun Jul 25, 2021 9:37 pm See:
Scenegraph#Coding_examples
Code_snippets#Coin3D
Coin3d snippets
Thanks that is very good.
I hope we will able to update the list and put some extra text + Screen shoot for each file
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: COIN3D/Pivy examples - Great list of many good examples [Job done]

Post by Kunda1 »

Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
mariwan
Posts: 469
Joined: Wed Jan 06, 2021 2:00 pm

Re: COIN3D/Pivy examples - Great list of many good examples [Job done]

Post by mariwan »

Often I have seen pictures of a software that is showing different objects drawn by Coin.
Now, I found the home site that has that software. It is a great software to understand how you draw using coin in a graphical environment.

The software is called : Coindesigner

http://coindesigner.sourceforge.net/ind ... 6|20|26#26
you find latest at :

https://github.com/jmespadero/coindesigner

You might know already, but there are many others that don't know about this software.
You can open Inventor and other 3D files and see the structure of the drawing. Later you can use that to code .. there is a export cpp which I think it will be easy to convert it to python.
@kunda1
I wish to have it mentioned at the same place we have the coin3d sample files
hope you find this info useful
Post Reply