OpenSCAD: Aggiungi un elemento OpenSCAD
Aggiungi Elemento OpenSCAD |
Posizione nel menu |
---|
OpenSCAD → Aggiungi Elemento OpenSCAD |
Ambiente |
OpenSCAD |
Avvio veloce |
Nessuno |
Introdotto nella versione |
- |
Vedere anche |
Nessuno |
Descrizione
Aggiunge un elemento OpenSCAD inserendo il codice OpenSCAD nel pannello delle azioni ed esegue il binario di OpenSCAD (richiede OpenSCAD installato)
Quando è selezionato as Mesh, OpenSCAD restituisce un oggetto Mesh.
Ogni volta che si preme Aggiungi viene eseguito il codice OpenSCAD e gli elementi vengono importati.
Questa funzione non fornisce alcun controllo della sintassi o messaggi di errore tranne un output se OpenSCAD è mancante. Se mancano degli elementi, il percorso usato per specificare le dichiarazioni <>and include<> potrebbe essere sbagliato.
Le biblioteche dovrebbero essere accessibili di default, e agli esempi si può accedere con:
include <../examples/example001.scad>;
would include the first examples also known as the OpenSCAD icon
Initial set up from within FreeCAD
- OpenSCAD needs to be installed on your computer before FreeCAD will have this functionality
- install OpenSCAD in the appropriate manner for your operating system. See the OpenSCAD web site for more information
- FreeCAD needs to be told where to find the OpenSCAD executable
- Switch to the OpenSCAD Workbench Menu -> View Workbench -> OpenSCAD
- Open the preferences dialog Menu -> Edit -> Preferences
- Click on "OpenSCAD" on the left plane
- Click on the button labled "..." in General Settings -> General OpenSCAD Settings -> OpenSCAD executable to browser the directory or enter the path (e.g. Ubuntu based Linux distributions /usr/bin/openscad) directly into the line input right to the button
- close and restart FreeCAD, a new OpenSCAD icon will appear on the tool bar, and in the OpenSCAD menu, in the FreeCAD OpenSCAD workbench
- It is also possible to add another optional Parameter which controls the maximum sides of a polygon before it is considered a circle (fn).
Starting from FreeCAD Version 0.14, FreeCAD will search for the OpenSCAD executable if the setting mentioned above is empty.