Coin3d snippets

Description of this list
Complex libraries like COIN3D need good documentation and good tutorials. Unfortunately, there aren't many tutorials for the COIN library. After a long search, the code examples listed below were found. They have been modified so that they can be loaded in FreeCAD. But some code may fail as these examples were created for other environments. You will find warnings to that effect in the code.

Users can run these scripts either as a macro or directly in the Python console. Please note that many of the functions have 'Exe' or 'Execu', short for 'Execute', in their name.

These files are also mentioned in a tutorial for the C language. Please look at the following link.

List of the files and their screenshot (Python scripts)

 * 1) ) 02.1.HelloCone.py
 * 2) ) 02.2.EngineSpin.py
 * 3) ) 02.3.Trackball.py
 * 4) ) 02.4.Examiner.py
 * 5) ) 03.1.Molecule.py
 * 6) ) 03.2.Robot.py
 * 7) ) 03.3.Naming.py
 * 8) ) 04.1.Cameras.py
 * 9) ) 04.2.Lights.py
 * 10) ) 05.1.FaceSet.py
 * 11) ) 05.2.IndexedFaceSet.py
 * 12) ) 05.3.TriangleStripSet.py
 * 13) ) 05.4.QuadMesh.py
 * 14) ) 05.5.Binding.py
 * 15) ) 05.6.TransformOrdering.py
 * 16) ) 06.1.Text.py
 * 17) ) 06.2.Simple3DText.py
 * 18) ) 06.3.Complex3DText.py
 * 19) ) 07.1.BasicTexture.py
 * 20) ) 07.2.TextureCoordinates.py
 * 21) ) 07.3.TextureFunction.py
 * 22) ) 08.1.BSCurve.py
 * 23) ) 08.2.UniCurve.py
 * 24) ) 08.3.BezSurf.py
 * 25) ) 08.4.TrimSurf.py
 * 26) ) 09.1.Print.py
 * 27) ) 09.2.Texture.py
 * 28) ) 09.3.Search.py
 * 29) ) 09.4.PickAction.py
 * 30) ) 09.5.GenSph.py
 * 31) ) 10.1.addEventCB.py
 * 32) ) 10.2.setEventCB.py
 * 33) ) 10.3and4.MotifList.py
 * 34) ) 10.5.SelectionCB.py
 * 35) ) 10.6.PickFilterTopLevel.py
 * 36) ) 10.7.PickFilterManip.py
 * 37) ) 10.8.PickFilterNodeKit.py
 * 38) ) 11.1.ReadFile.py
 * 39) ) 11.2.ReadString.py
 * 40) ) 12.1.FieldSensor.py
 * 41) ) 12.2.NodeSensor.py
 * 42) ) 12.3.AlarmSensor.py
 * 43) ) 12.4.TimerSensor.py
 * 44) ) 13.1.GlobalFlds.py
 * 45) ) 13.2.ElapsedTime.py
 * 46) ) 13.3.TimeCounter.py
 * 47) ) 13.4.Gate.py
 * 48) ) 13.5.Boolean.py
 * 49) ) 13.6.Calculator.py
 * 50) ) 13.7.Rotor.py
 * 51) ) 13.8.Blinker.py
 * 52) ) 14.1.FrolickingWords.py
 * 53) ) 14.2.Editors.py
 * 54) ) 14.3.Balance.py
 * 55) ) 15.1.ConeRadius.py
 * 56) ) 15.2.SliderBox.py
 * 57) ) 15.3.AttachManip.py
 * 58) ) 15.4.Customize.py
 * 59) ) 16.1.Overlay.py
 * 60) ) 16.2.Callback.py
 * 61) ) 16.3.AttachEditor.py
 * 62) ) 16.4.OneWindow.py
 * 63) ) 16.5.Examiner.py
 * 64) ) 17.1.ColorIndex.py
 * 65) ) 17.2.GLCallback.py
 * 66) ) 17.3.GLFloor.py

Source code
You can find the source code of these scripts on GitHub: COIN3D examples.

Software for learning COIN3D library
CoinDesigner, although old, is a useful program if you want to understand how the Coin3D library can be used, and how you can write your own code both in the Inventor 2.x format or for FreeCAD.

No installation is required. Thanks go to the author of the program.