FreeCAD Logo FreeCAD 1.0
  • English Afrikaans Arabic Belarusian Catalan Czech German Greek Spanish Spanish Basque Finnish Filipino French Galician Croatian Hungarian Indonesian Italian Japanese Kabyle Korean Lithuanian Dutch Norwegian Bokmal Polish Portuguese Portuguese Romanian Russian Slovak Slovenian Serbian Swedish Turkish Ukrainian Valencian Vietnamese Chinese Chinese
  • Features
  • Download
  • Blog
  • Documentation
    Documentation index Getting started Users documentation The FreeCAD manual Workbenches documentation Python coding documentation C++ coding documentation Tutorials Frequently asked questions Privacy policy About FreeCAD
  • Contribute
    How to help Sponsor Report a bug Make a pull request Jobs and funding Contribution guidelines Developers handbook Translations
  • Community
    Code of conduct Forum The FPA GitHub GitLab Codeberg Mastodon Matrix IRC IRC via Webchat Gitter Discord Reddit Twitter Facebook LinkedIn Calendar
  • ♥ Donate

Donate

$
SEPA Information
Please set up your SEPA bank transfer to:
Beneficiary: The FreeCAD project association
IBAN: BE04 0019 2896 4531
BIC/SWIFT: GEBABEBBXXX
Bank agency: BNP Paribas Fortis
Address: Rue de la Station 64, 1360 Perwez, Belgium

While Stripe doesn't support monthly donations, you can still become a sponsor! Simply make a one-time donation equivalent to 12 months of support, and you'll gain access to the corresponding sponsoring tier. It's an easy and flexible way to contribute.

If you are not sure or not able to commit to a regular donation, but still want to help the project, you can do a one-time donation, of any amount.

Choose freely the amount you wish to donate one time only.

You can support FreeCAD by sponsoring it as an individual or organization through various platforms. Sponsorship provides a steady income for developers, allowing the FPA to plan ahead and enabling greater investment in FreeCAD. To encourage sponsorship, we offer different tiers, and unless you choose to remain anonymous, your name or company logo will be featured on our website accordingly.

from 1 USD / 1 EUR per month. You will not have your name displayed here, but you will have helped the project a lot anyway. Together, normal sponsors maintain the project on its feet as much as the bigger sponsors.

from 25 USD / 25 EUR per month. Your name or company name is displayed on this page.

from 100 USD / 100 EUR per month. Your name or company name is displayed on this page, with a link to your website, and a one-line description text.

from 200 USD / 200 EUR per month. Your name or company name and logo displayed on this page, with a link to your website and a custom description text. Companies that have helped FreeCAD early on also appear under Gold sponsors.

Instead of donating each month, you might find it more comfortable to make a one-time donation that, when divided by twelve, would give you right to enter a sponsoring tier. Don't hesitate to do so!

Choose freely the amount you wish to donate each month.

Please inform your forum name or twitter handle as a notein your transfer, or reach to us, so we can give you proper credits!

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 much research, 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 for those problems in the code.

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

These files are also mentioned in the Inventor Mentor tutorial for the C language.

List of the files and their screenshot (Python scripts)

  • 02.1.HelloCone.py
  • 02.2.EngineSpin.py
  • 02.3.Trackball.py
  • 02.4.Examiner.py
  • 03.1.Molecule.py
  • 03.2.Robot.py
  • 03.3.Naming.py
  • 04.1.Cameras.py
  • 04.2.Lights.py
  • 05.1.FaceSet.py
  • 05.2.IndexedFaceSet.py
  • 05.3.TriangleStripSet.py
  • 05.4.QuadMesh.py
  • 05.5.Binding.py
  • 05.6.TransformOrdering.py
  • 06.1.Text.py
  • 06.2.Simple3DText.py
  • 06.3.Complex3DText.py
  • 07.1.BasicTexture.py
  • 07.2.TextureCoordinates.py
  • 07.3.TextureFunction.py
  • 08.1.BSCurve.py
  • 08.2.UniCurve.py
  • 08.3.BezSurf.py
  • 08.4.TrimSurf.py
  • 09.1.Print.py
  • 09.2.Texture.py
  • 09.3.Search.py
  • 09.4.PickAction.py
  • 09.5.GenSph.py
  • 10.1.addEventCB.py
  • 10.2.setEventCB.py
  • 10.3and4.MotifList.py
  • 10.5.SelectionCB.py
  • 10.6.PickFilterTopLevel.py
  • 10.7.PickFilterManip.py
  • 10.8.PickFilterNodeKit.py
  • 11.1.ReadFile.py
  • 11.2.ReadString.py
  • 12.1.FieldSensor.py
  • 12.2.NodeSensor.py
  • 12.3.AlarmSensor.py
  • 12.4.TimerSensor.py
  • 13.1.GlobalFlds.py
  • 13.2.ElapsedTime.py
  • 13.3.TimeCounter.py
  • 13.4.Gate.py
  • 13.5.Boolean.py
  • 13.6.Calculator.py
  • 13.7.Rotor.py
  • 13.8.Blinker.py
  • 14.1.FrolickingWords.py
  • 14.2.Editors.py
  • 14.3.Balance.py
  • 15.1.ConeRadius.py
  • 15.2.SliderBox.py
  • 15.3.AttachManip.py
  • 15.4.Customize.py
  • 16.1.Overlay.py
  • 16.2.Callback.py
  • 16.3.AttachEditor.py
  • 16.4.OneWindow.py
  • 16.5.Examiner.py
  • 17.1.ColorIndex.py
  • 17.2.GLCallback.py
  • 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.

Notes

  1. Click the names of the scripts to see the screenshot. The scripts that do not have a link probably cannot be executed under FreeCAD. But even so, please try to look at the code. These scripts may still give you some ideas.
  2. There are many other drawing files (Inventor 2.x format) that can be loaded in FreeCAD and saved as a python script. The formatting will not be great, but such a script can still help you understand the COIN3D library.
  3. Generally, COIN3D doesn\'t provide good primitive drawings. The widget system Design456 does provide some: some basic shapes, and also some complex shapes. The arrow widget and the line widget used by the Design456 Workbench are examples.

⏵ documentation index > Developer Documentation > Coin3d snippets

This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/Coin3d_snippets.md

Get in touch!
Forum GitHub Mastodon Matrix IRC Gitter.im Discord Reddit Twitter Facebook LinkedIn

© The FreeCAD Team. Homepage image credits (top to bottom): ppemawm, r-frank, epileftric, regis, rider_mortagnais, bejant.

This project is supported by: , KiCad Services Corp. and other sponsors

GitHubImprove this page on GitHub