Vista 3D
Introduzione
La Vista 3D di FreeCAD è un'istanza di una scena grafica di Coin3D. Coin3D è una libreria che implementa lo standard di descrizione della scena OpenInventor 2.1.
Alcune proprietà della vista, come il colore di sfondo, lo stile di navigazione con il mouse e i passi dello zoom, possono essere configurate con l'editor delle preferenze.
Per impostazione predefinita, la vista 3D mostra un piccolo widget con gli assi delle coordinate e il cubo di navigazione anche esso con gli assi delle coordinate; la griglia può essere visualizzata e configurata caricando l'ambiente Draft.
Azioni
Note: le azioni di collegamento sono state aggiunte nella versione 0.19.
Poiché la vista ad albero elenca la maggior parte degli oggetti che sono visibili nella vista 3D, molte delle azioni sono uguali a quelle che possono essere eseguite dalla vista ad albero.
Quando è attivo l'ambiente predefinito Start, il clic destro sulla vista 3D mostra un solo comando:
- Stile di navigazione: permette di scegliere lo stile dei pulsanti da utilizzare con un mouse a 3 pulsanti o un trackpad per laptop.
Dopo aver caricato un Ambiente di lavoro, sono disponibili comandi aggiuntivi:
- Azioni link: Crea un link.
- Crea un gruppo di link: Gruppo semplice, Gruppo con link, Gruppo con link di trasformazione.
- Visualizza tutto: esegue una panoramica e ingrandisce la vista per adattarla a tutti gli oggetti nel documento sullo schermo.
- Visualizza la selezione: effettua una panoramica e ingrandisce la vista per adattarla solo all'oggetto attualmente selezionato sullo schermo.
- Stile di disegno: come è, facce piene, ombreggiato, reticolo, punti, linee nascoste, nessuna ombreggiatura.
- Viste standard: isometrica, di fronte, dall'alto, da destra, da dietro, dal basso, da sinistra, ruota a sinistra, ruota a destra.
- Misure: attiva/disattiva le misure, cancella le misure.
- Finestra del documento: agganciata, non agganciata, e schermo intero.
Inoltre, a seconda dell'ambiente e dell'oggetto attivo, possono essere disponibili altri comandi contestuali.
For example, with the Part Workbench and one object selected:
- Appearance: launches the dialog to change color and sizes of lines and vertices, and color of faces.
- Toggle visibility: makes the object visible or invisible in the 3D view.
- Toggle selectability: makes the object no longer selectable in the 3D view; use again this command to cancel its effect. It sets the object's
Selectable
attribute totrue
orfalse
. Change the property by toggling VistaSelectable in the property editor. - Go to selection: expand the tree view to show the selected object in the hierarchy.
- Random color: assigns a random color to the object. It sets the object's
ShapeColor
attribute to a tuple(r,g,b)
with tree random floats between 0 and 1. Change the property by modifying VistaShape Color in the property editor. - Delete: removes the object from the document, and from the 3D view, by calling the document's
removeObject()
method.
Another example, with the Draft Workbench and one object selected, it shows the same commands as with the Part Workbench, but also:
- Draft: object creation and modification commands from the Draft Workbench.
- Utilities: additional contextual commands provided by the Draft Workbench.
Details
FreeCAD uses the Quarter library to use Coin3D in a Qt environment.
It is possible to interact directly with the 3D view scenegraph from the Python console by using the Python library Pivy.
For more information see the power user documentation:
- Scenegraph, description of Coin3D.
- Pivy, usage of Coin3D from the Python console.
- Third party libraries used by FreeCAD.
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Assembly, BIM, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub