Jump to content

OpenSCAD Miroir du maillage

From FreeCAD Documentation
This page is a translated version of the page OpenSCAD MirrorMeshFeature and the translation is 100% complete.

OpenSCAD Miroir du maillage

Emplacement du menu
OpenSCAD → Créer un objet maillé en miroir
Ateliers
OpenSCAD
Raccourci par défaut
Aucun
Introduit dans la version
-
Voir aussi
Part Symétriser

Description

Crée un nouvel objet maillé en miroir, symmétrisé autour de l'axe sélectionné.

Utilisation

  1. Sélectionnez l'objet maillé à mettre en miroir.
  2. Sélectionnez l'option OpenSCAD → Créer un objet maillé en miroir du menu.
  3. Sélectionnez l'axe souhaité dans la fenêtre de dialogue, ou entrez votre propre axe personnalisé à utiliser et cliquez sur OK.
  4. Un nouvel objet maillé est créé et mis en miroir, l'objet d'origine est masqué.

Limitations

  • Le nouvel objet mesh n'est pas paramétrique par rapport à l'objet maillé d'origine, ce qui signifie que les modifications apportées à l'objet d'origine ne sont pas reflétées dans le nouvel objet en miroir.

Remarques

  • La fonction ne modifie pas le maillage existant mais génère un nouveau maillage.

Script

La fonction est accessible via Python :

import OpenSCADUtils
import Mesh
#this assumes an existing object in the document named "Mesh" that you wish to mirror
original_mesh = App.ActiveDocument.Mesh
mirrored_mesh = OpenSCADUtils.mirrormesh(original_mesh.Mesh, FreeCAD.Base.Vector(1,0,0))
Mesh.show(mirrored_mesh)