Draft Mirror/de: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 29: Line 29:
</div>
</div>


<div class="mw-translate-fuzzy">
Das Spiegel Werkzeug kann auf 2D Formen angewendet werden, die mit dem [[Draft Workbench/de|Entwurf Arbeitsbereich] erstellt wurden, kann aber auch auf vielen Arten von 3D Objekten, wie sie mit der [[Part Workbench/de|Part Arbeitsbereich]], [[PartDesign Workbench/de|PartDesign Arbeitsbereich]]] oder [[Arch Workbench/de|Arch Arbeitsbereich]]en angewendet werden.
Das Spiegel Werkzeug kann auf 2D Formen angewendet werden, die mit dem [[Draft Workbench/de|Entwurf Arbeitsbereich] erstellt wurden, kann aber auch auf vielen Arten von 3D Objekten, wie sie mit der [[Part Workbench/de|Part Arbeitsbereich]], [[PartDesign Workbench/de|PartDesign Arbeitsbereich]]] oder [[Arch Workbench/de|Arch Arbeitsbereich]]en angewendet werden.
</div>

Um Kopien oder Klone zu erzeugen und sie manuell zu platzieren, verwende [[Draft Move/de|Entwurf bewegen]], [[Draft Rotate/de|Entwurf drehen]] und [[Draft Clone/de| Entwurf klonen]].


[[Image:Draft_Mirror_example.jpg|400px]]
[[Image:Draft_Mirror_example.jpg|400px]]
<div class="mw-translate-fuzzy">
{{Caption|Gespiegeltes Objekt, das unter Verwendung einer Spiegellinie erstellt wurde.}}
{{Caption|Gespiegeltes Objekt, das unter Verwendung einer Spiegellinie erstellt wurde.}}
</div>


==Anwendung==
==Anwendung==


See also: [[Draft_Snap|Draft Snap]] and [[Draft_Constrain|Draft Constrain]].

<div class="mw-translate-fuzzy">
# Wähle ein Objekt aus, das du spiegeln möchtest.
# Wähle ein Objekt aus, das du spiegeln möchtest.
# Drücke die {{Button|[[Bild:Draft Mirror.svg|16px]] [[Draft Mirror/de|Entwurf spiegel]]}} Taste. Wenn kein Objekt ausgewählt ist, wirst du aufgefordert, eines auszuwählen.
# Drücke die {{Button|[[Bild:Draft Mirror.svg|16px]] [[Draft Mirror/de|Entwurf spiegel]]}} Taste. Wenn kein Objekt ausgewählt ist, wirst du aufgefordert, eines auszuwählen.
# Klicke auf einen ersten Punkt in der 3D Ansicht, oder gib eine [[Draft_Coordinates/de|Koordinate]] ein und drücke die {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint/de|Punkt hinzufügen]]}} Schaltfläche.
# Klicke auf einen ersten Punkt in der 3D Ansicht, oder gib eine [[Draft_Coordinates/de|Koordinate]] ein und drücke die {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint/de|Punkt hinzufügen]]}} Schaltfläche.
# Klicke auf einen zweiten Punkt in der 3D Ansicht, oder gib eine [[Draft_Coordinates/de|Koordinate]] ein und drücken Sie die Taste {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint/de|Punkt hinzufügen]]}} Schaltfläche. Diese Punkte legen eine Linie fest, die zusammen mit der Kameraansicht eine Spiegelebene definiert, die zum Erstellen des gespiegelten Objekts verwendet wird.
# Klicke auf einen zweiten Punkt in der 3D Ansicht, oder gib eine [[Draft_Coordinates/de|Koordinate]] ein und drücken Sie die Taste {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint/de|Punkt hinzufügen]]}} Schaltfläche. Diese Punkte legen eine Linie fest, die zusammen mit der Kameraansicht eine Spiegelebene definiert, die zum Erstellen des gespiegelten Objekts verwendet wird.

<div class="mw-translate-fuzzy">
Nach der Erstellung der gespiegelten Kopie kann die Bindung mit dem Originalobjekt mit der Taste {{Button|[[Image:Tree_Part.svg|16px]] [[Part_SimpleCopy/de|Part Erzeuge einfache Kopie]]}} Werkzeug entfernt werden.
</div>
</div>

Eine gespiegelte Kopie eines Entwurfsobjekts kann in ein [[Draft Wire/de|Draft Wire]], durch Anwendung von {{Button|[[Image:Draft Downgrade.svg|16px]] [[Draft Downgrade]]}} dann {{Button|[[Image:Draft Upgrade.svg|16px]] [[Draft Upgrade|Draft Upgrade]]}} umgewandelt werden.


==Options==
==Options==


The single character keyboard shortcuts mentioned here can be changed. See [[Draft_Preferences|Draft Preferences]].
* Press {{KEY|X}}, {{KEY|Y}} or {{KEY|Z}} after the first point to constrain the second point on the given axis.

* To enter coordinates manually, simply enter the numbers, then press {{KEY|Enter}} between each X, Y and Z component.
* To manually enter coordinates enter the X, Y and Z component, and press {{KEY|Enter}} after each. Or you can press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button when you have the desired values. It is advisable to move the pointer out of the [[3D_view|3D view]] before entering coordinates.
* Press {{KEY|R}} or click the checkbox to toggle ''relative'' mode. If relative mode is on, the coordinates of the second point are relative to the first one; if not, they are absolute, taken from the origin (0,0,0).
* Press {{KEY|T}} or click the checkbox to toggle ''continue'' mode. If continue mode is on, the Mirror tool will restart after you give the second point, allowing you to put another object without pressing the tool button again.
* Press {{KEY|R}} or click the {{MenuCommand|Relative}} checkbox to toggle relative mode. If relative mode is on, the coordinates of the second point are relative to the first point, else they are relative to the coordinate system origin.
* Press {{KEY|G}} or click the {{MenuCommand|Global}} checkbox to toggle global mode. If global mode is on, coordinates are relative to the global coordinate system, else they are relative to the [[Draft_SelectPlane|working plane]] coordinate system. {{Version|0.20}}
* Hold {{KEY|Ctrl}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance.
* The {{MenuCommand|Continue}} checkbox has no purpose for this command.
* Hold {{KEY|Shift}} while drawing to [[Draft_Constrain|constrain]] your second point horizontally or vertically in relation to the first one.
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the current command.
* The {{MenuCommand|Modify subelements}} checkbox has no purpose for this command.
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the command.

==Notes==

* Mirrored copies of [[Draft_Line|Draft Lines]], [[Draft_Wire|Draft Wires]], [[Draft_Arc|Draft Arcs]] and [[Draft_Circle|Draft Circles]] can be turned into independent editable Draft objects by using [[Draft_Downgrade|Draft Downgrade]] and then [[Draft_Upgrade|Draft Upgrade]].
* The [[Part_SimpleCopy|Part SimpleCopy]] command can be used to create a copy of a mirrored object that is not linked to its source object.

==Preferences==

See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]].

* To change the number of decimals used for the input of coordinates: {{MenuCommand|Edit → Preferences... → General → Units → Units settings → Number of decimals}}.


==Properties==
==Properties==


See also: [[property_editor|Property editor]].
* {{PropertyData|Source}}: specifies the object to mirror,

* {{PropertyData|Base}}: specifies the base point of the mirror plane.
A [[Part_Mirror|Part Mirror]] object is derived from a [[Part_Feature|Part Feature]] object and inherits all its properties. It also has the following additional properties:
* {{PropertyData|Normal}}: specifies the normal direction of the mirror plane.

===Data===

{{TitleProperty|Base}}

* {{PropertyData|Source|Link}}: specifies the object that is mirrored.

{{TitleProperty|Plane}}

* {{PropertyData|Base|Vector}}: specifies the base point of the mirror plane.
* {{PropertyData|Normal|Vector}}: specifies the normal direction of the mirror plane.


== Scripting ==
==Scripting==


See also: [https://www.freecadweb.org/api Autogenerated API documentation] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].


To mirror objects use the {{incode|mirror}} method of the Draft module.
To mirror objects use the {{incode|mirror}} method of the Draft module.
Line 76: Line 99:


* {{incode|objlist}} contains the objects to be mirrored. It is either a single object or a list of objects.
* {{incode|objlist}} contains the objects to be mirrored. It is either a single object or a list of objects.
* {{incode|p1}} indicates the first point of the mirror plane.
* {{incode|p1}} is the first point of the mirror plane.
* {{incode|p2}} indicates the second point of the mirror plane.
* {{incode|p2}} is the second point of the mirror plane.
* If the [[Draft_SelectPlane|Draft working plane]] is available the alignment of the mirror plane is determined by its normal, else the view direction of the camera in the active [[3D_view|3D view]] is used. If the graphical interface is not available the Z axis is used.
* If the [[Draft_SelectPlane|Draft working plane]] is available the alignment of the mirror plane is determined by its normal, else the view direction of the camera in the active [[3D_view|3D view]] is used. If the graphical interface is not available the Z axis is used.
* {{incode|mirrored_list}} is returned with the new {{incode|Part::Mirroring}} objects. It is either a single object or a list of objects, depending on {{incode|objlist}}.
* {{incode|mirrored_list}} is returned with the new {{incode|Part::Mirroring}} objects. It is either a single object or a list of objects, depending on {{incode|objlist}}.

Revision as of 07:59, 16 June 2021

This documentation is a work in progress. Please don't mark it as translatable since it will change in the next hours and days.

Entwurf Spiegel

Menüeintrag
Entwurf → Spiegel
Arbeitsbereich
Entwurf, Arch
Standardtastenkürzel
Keiner
Eingeführt in Version
-
Siehe auch
Entwurf Scale, Entwurf Clone

Beschreibung

Das Entwurf Spiegel Werkzeug erstellt eine gespiegelte Kopie eines ausgewählten Objekts mit der Operation Teil Spiegel. Die Kopie ist, genau wie ein Entwurf Klon, mit dem Originalobjekt verknüpft. Das bedeutet, wenn das Originalobjekt seine Form und Eigenschaften ändert, ändert sich auch die gespiegelte Form.

Das Spiegel Werkzeug kann auf 2D Formen angewendet werden, die mit dem [[Draft Workbench/de|Entwurf Arbeitsbereich] erstellt wurden, kann aber auch auf vielen Arten von 3D Objekten, wie sie mit der Part Arbeitsbereich, PartDesign Arbeitsbereich] oder Arch Arbeitsbereichen angewendet werden.

Gespiegeltes Objekt, das unter Verwendung einer Spiegellinie erstellt wurde.

Anwendung

See also: Draft Snap and Draft Constrain.

  1. Wähle ein Objekt aus, das du spiegeln möchtest.
  2. Drücke die 16px Entwurf spiegel Taste. Wenn kein Objekt ausgewählt ist, wirst du aufgefordert, eines auszuwählen.
  3. Klicke auf einen ersten Punkt in der 3D Ansicht, oder gib eine Koordinate ein und drücke die Punkt hinzufügen Schaltfläche.
  4. Klicke auf einen zweiten Punkt in der 3D Ansicht, oder gib eine Koordinate ein und drücken Sie die Taste Punkt hinzufügen Schaltfläche. Diese Punkte legen eine Linie fest, die zusammen mit der Kameraansicht eine Spiegelebene definiert, die zum Erstellen des gespiegelten Objekts verwendet wird.

Options

The single character keyboard shortcuts mentioned here can be changed. See Draft Preferences.

  • To manually enter coordinates enter the X, Y and Z component, and press Enter after each. Or you can press the Enter point button when you have the desired values. It is advisable to move the pointer out of the 3D view before entering coordinates.
  • Press R or click the Relative checkbox to toggle relative mode. If relative mode is on, the coordinates of the second point are relative to the first point, else they are relative to the coordinate system origin.
  • Press G or click the Global checkbox to toggle global mode. If global mode is on, coordinates are relative to the global coordinate system, else they are relative to the working plane coordinate system. introduced in version 0.20
  • The Continue checkbox has no purpose for this command.
  • The Modify subelements checkbox has no purpose for this command.
  • Press Esc or the Close button to abort the command.

Notes

Preferences

See also: Preferences Editor and Draft Preferences.

  • To change the number of decimals used for the input of coordinates: Edit → Preferences... → General → Units → Units settings → Number of decimals.

Properties

See also: Property editor.

A Part Mirror object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:

Data

Base

  • DatenSource (Link): specifies the object that is mirrored.

Plane

  • DatenBase (Vector): specifies the base point of the mirror plane.
  • DatenNormal (Vector): specifies the normal direction of the mirror plane.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To mirror objects use the mirror method of the Draft module.

mirrored_list = mirror(objlist, p1, p2)
  • objlist contains the objects to be mirrored. It is either a single object or a list of objects.
  • p1 is the first point of the mirror plane.
  • p2 is the second point of the mirror plane.
  • If the Draft working plane is available the alignment of the mirror plane is determined by its normal, else the view direction of the camera in the active 3D view is used. If the graphical interface is not available the Z axis is used.
  • mirrored_list is returned with the new Part::Mirroring objects. It is either a single object or a list of objects, depending on objlist.

Beispiel:

import FreeCAD as App
import Draft

doc = App.newDocument()

place = App.Placement(FreeCAD.Vector(1000, 0, 0), App.Rotation())
polygon1 = Draft.make_polygon(3, 750)
polygon2 = Draft.make_polygon(5, 750, placement=place)

p1 = App.Vector(2000, -1000, 0)
p2 = App.Vector(2000, 1000, 0)

line1 = Draft.make_line(p1, p2)
mirrored1 = Draft.mirror(polygon1, p1, p2)

Line2 = Draft.make_line(-p1, -p2)
mirrored2 = Draft.mirror([polygon1, polygon2], -p1, -p2)

doc.recompute()