Draft Mirror/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "{{GuiCommand/fr|Name=Draft Mirror|Name/fr=Draft Mirror|Workbenches=Draft, Arch|MenuLocation=Draft → Mirror|SeeAlso=Draft Scale/fr|Dr...")
 
(Updating to match new version of source page)
Line 23: Line 23:
The Clone tool can by used in [[macros]] and from the python console by using the following function:
The Clone tool can by used in [[macros]] and from the python console by using the following function:


{{Code|code=
<syntaxhighlight>
mirror (objectslist,p1,p2)
mirror (objectslist,p1,p2)
}}
</syntaxhighlight>


* Makes mirror(s) of the given object(s) across a plane defined by a line from p1 to p2, and parallel to the current view
* Makes mirror(s) of the given object(s) across a plane defined by a line from p1 to p2, and parallel to the current view
Line 32: Line 32:


Example:
Example:
{{Code|code=
<syntaxhighlight>
import Draft,FeeCAD
import Draft,FeeCAD
p1 = FreeCAD.Vector(0,0,0)
p1 = FreeCAD.Vector(0,0,0)
p2 = FreeCAD.Vector(2,2,0)
p2 = FreeCAD.Vector(2,2,0)
Draft.mirror(FreeCAD.ActiveDocument.ActiveObject,p1,p2)
Draft.mirror(FreeCAD.ActiveDocument.ActiveObject,p1,p2)
}}
</syntaxhighlight>


{{clear}}
{{clear}}

Revision as of 16:05, 25 November 2016

Draft Mirror

Emplacement du menu
Draft → Mirror
Ateliers
Draft, Arch
Raccourci par défaut
Aucun
Introduit dans la version
-
Voir aussi
Draft Scale

Description

This tool produces a mirrored copy of a selected object, using a Part Mirror object. The copy is parametrically bound to the original object: If the original object changes, the mirrored copy changes too, but keeps mirrored.

How to use

  1. Select objects you wish to mirror
  2. Press the Draft Mirror button
  3. Click the first point of the mirror line on the 3D view, or type a coordinate
  4. Click the other point of the mirror line on the 3D view, or type a coordinate

Properties

  • DonnéesBase: The base point of the mirror plane
  • DonnéesNormal: The normal direction of the mirror plane

Options

Scripting

The Clone tool can by used in macros and from the python console by using the following function:

mirror (objectslist,p1,p2)
  • Makes mirror(s) of the given object(s) across a plane defined by a line from p1 to p2, and parallel to the current view
  • The result is a Part Mirror object
  • If the original object changes, the final object changes too but keeps mirrored

Example:

import Draft,FeeCAD
p1 = FreeCAD.Vector(0,0,0)
p2 = FreeCAD.Vector(2,2,0)
Draft.mirror(FreeCAD.ActiveDocument.ActiveObject,p1,p2)