Fragmentos Coin3d

From FreeCAD Documentation
Revision as of 07:27, 26 August 2021 by Maker (talk | contribs) (Created page with "Usuarios pueden ejecutar estos scripts como una macro o directamente en la consola de Python. Tenga en cuenta que muchas de las funciones ti...")
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.

Usuarios pueden ejecutar estos scripts como una macro o directamente en la consola de Python. Tenga en cuenta que muchas de las funciones tienen 'Exe' o 'Execu', abreviatura de 'Execute', en su nombre.

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.