Importowanie kodu OpenSCAD

From FreeCAD Documentation
Revision as of 08:58, 9 November 2019 by Kaktus (talk | contribs)
Ćwiczenie
Temat
Importowanie kodu OpenSCAD
Poziom trudności
Początkujący
Czas wykonania
30 minut
Autorzy
r-frank
Wersja FreeCAD
0.16.6704
Pliki z przykładami
Zobacz również
-

Wprowadzenie

OpenSCAD, podobnie jak FreeCAD, jest oprogramowaniem typu open source 3D CAD. Ale podczas gdy FreeCAD działa w oparciu o model graficzny, OpenSCAD wykorzystuje interfejs programowania do wykonywania operacji 3D. Środowisko pracy w OpenSCAD może być używany do importowania kodu obiektowego OpenSCAD oraz do wykonywania niektórych działań związanych z siatką modelu.

Instalacja OpenSCAD

Użytkownicy komputerów Mac mogą pobrać binaria z Strona główna OpenSCAD.
Użytkownicy Linuksa Ubuntu/Mint mogą przeprowadzić instalacje z repozytoriów systemowych lub ze strony głównej OpenSCAD.
Użytkownicy systemu Windows mogą pobrać program z Strona główna OpenSCAD.
Ponieważ tylko plik wykonywalny OpenSCAD jest potrzebny w FreeCAD, użytkownicy Windows mogą również zainstalować wersję przenośną, jeśli taką preferują.

Configuring OpenSCAD workbench in FreeCAD

  • Open FreeCAD
  • Switch to OpenSCAD workbench
  • Choose Edit > Preferences > OpenSCAD from the Top menu
    • Point FreeCAD to the OpenSCAD executable (section: General OpenSCAD settings)
    • all the other values on the settings-page could be left at default

The sample model

Here we will use the example005.scad-file from the (old) OpenSCAD-examples, but feel free to use any scad-file of your liking.

Importing the model in FreeCAD

  • In FreeCAD just choose File Open and choose the .scad-File you want to import.
  • It is not important which workbench is activated, the OpenSCAD workbench itself is only needed when applying special features to your model
  • FreeCAD will import the OpenSCAD-File and build up a tree with primitives and boolean operations
  • Tutorial finished