Importation du code d'OpenSCAD

From FreeCAD Documentation
Revision as of 16:23, 28 September 2017 by Bzh56420 (talk | contribs) (Created page with "== Introduction == OpenSCAD est un programme de CAO 3D utilisant le même noyau géométrique que FreeCAD (OCCT). <br /> Mais tandis que FreeCAD utilise une approche visuelle,...")
Tutoriel
Thème
Importer code OpenSCAD
Niveau
Débutant
Temps d'exécution estimé
30 minutes
Auteurs
r-frank
Version de FreeCAD
0.16.6704
Fichiers exemples
Voir aussi
None

Introduction

OpenSCAD est un programme de CAO 3D utilisant le même noyau géométrique que FreeCAD (OCCT).
Mais tandis que FreeCAD utilise une approche visuelle, OpenSCAD utilise une interface de programmation pour effectuer des opérations en 3D.
L'atelier OpenSCAD peut être utilisé pour importer un code objet OpenSCAD et avoir accès à certains des
opérations de maillage possibles avec OpenSCAD.

Installing OpenSCAD

Mac Users could download the binaries from the OpenSCAD homepage.
Linux Ubuntu/Mint users can install from the system repositories or from the OpenSCAD homepage.
Windows users can download the program from the OpenSCAD homepage.
Since only the OpenSCAD executable is needed by FreeCAD windows users can install the portable version if they like.

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