Coin3d snippets/es: Difference between revisions

From FreeCAD Documentation
(Created page with "== Notas ==")
(Created page with "Bibliotecas complejas como [https://en.wikipedia.org/wiki/Coin3D COIN3D] necesitan una buena documentación y buenos tutoriales. Por desgracia, no hay muchos tutoriales para l...")
Line 5: Line 5:
== Descripción de esta lista ==
== Descripción de esta lista ==


Complex libraries like [https://en.wikipedia.org/wiki/Coin3D 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.
Bibliotecas complejas como [https://en.wikipedia.org/wiki/Coin3D COIN3D] necesitan una buena documentación y buenos tutoriales. Por desgracia, no hay muchos tutoriales para la biblioteca COIN. Después de una larga búsqueda, se encontraron los ejemplos de código que aparecen a continuación. Han sido modificados para que puedan ser cargados en FreeCAD. Pero algún código puede fallar ya que estos ejemplos fueron creados para otros entornos. Encontrarás advertencias a tal efecto en el código.


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

Revision as of 07:26, 26 August 2021

Other languages:

Descripción de esta lista

Bibliotecas complejas como COIN3D necesitan una buena documentación y buenos tutoriales. Por desgracia, no hay muchos tutoriales para la biblioteca COIN. Después de una larga búsqueda, se encontraron los ejemplos de código que aparecen a continuación. Han sido modificados para que puedan ser cargados en FreeCAD. Pero algún código puede fallar ya que estos ejemplos fueron creados para otros entornos. Encontrarás advertencias a tal efecto en el código.

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 the Inventor Mentor tutorial for the C language.

Lista de los archivos y sus capturas de pantalla (scripts de Python)

Código fuente

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

Software para el aprendizaje de la biblioteca COIN3D

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.

Notas

  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.