Fragmentos Coin3d
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.
Estos archivos también se mencionan en el Inventor Mentor tutorial para el lenguaje C.
Lista de los archivos y sus capturas de pantalla (scripts de Python)
- 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
Código fuente
Puede encontrar el código fuente de estos scripts en GitHub: COIN3D ejemplos.
Software para el aprendizaje de la biblioteca COIN3D
CoinDesigner, aunque antiguo, es un programa útil si quieres entender cómo se puede utilizar la biblioteca Coin3D, y cómo puedes escribir tu propio código tanto en el formato de Inventor 2.x como para FreeCAD.
No requiere instalación. Gracias al autor del programa.
Notas
- 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.
- 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.
- 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.
- FreeCAD scripting: Python, Introduction to Python, Python scripting tutorial, FreeCAD Scripting Basics
- Modules: Builtin modules, Units, Quantity
- Workbenches: Workbench creation, Gui Commands, Commands, Installing more workbenches
- Meshes and Parts: Mesh Scripting, Topological data scripting, Mesh to Part, PythonOCC
- Parametric objects: Scripted objects, Viewproviders (Custom icon in tree view)
- Scenegraph: Coin (Inventor) scenegraph, Pivy
- Graphical interface: Interface creation, Interface creation completely in Python (1, 2, 3, 4, 5), PySide, PySide examples beginner, intermediate, advanced
- Macros: Macros, How to install macros
- Embedding: Embedding FreeCAD, Embedding FreeCADGui
- Other: Expressions, Code snippets, Line drawing function, FreeCAD vector math library (deprecated)
- Hubs: User hub, Power users hub, Developer hub