Draft Mirror/de: Difference between revisions

From FreeCAD Documentation
(Created page with "==Beschreibung==== Das Spiegelwerkzeug erstellt eine gespiegelte Kopie eines ausgewählten Objekts mit der Operation Part Mirror. Die Kopie ist, genau wie e...")
No edit summary
 
(80 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{Docnav|[[Draft_Drawing|Drawing]]|[[Draft_Stretch|Stretch]]|[[Draft_Module|Draft]]|IconL=Draft_Drawing.svg|IconC=Workbench_Draft.svg|IconR=Draft_Stretch.svg}}


{{Docnav/de
{{GuiCommand
|[[Draft_Scale/de|Skalieren]]
|[[Draft_Offset/de|Versatz]]
|[[Draft_Workbench/de|Draft]]
|IconL=Draft_Scale.svg
|IconR=Draft_Offset.svg
|IconC=Workbench_Draft.svg
}}

{{GuiCommand/de
|Name=Draft Mirror
|Name=Draft Mirror
|MenuLocation=Draft → Mirror
|Name/de=Draft Spiegeln
|MenuLocation=Änderung → Spiegeln
|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]
|SeeAlso=[[Draft Scale|Draft Scale]], [[Draft Clone|Draft Clone]]
|Workbenches=[[Draft_Workbench/de|Draft]], [[Arch_Workbench/de|Arch]]
|Shortcut={{KEY|M}} {{KEY|I}}
|SeeAlso=[[Draft_Clone/de|Draft Klonen]]
}}
}}


<span id="Description"></span>
==Beschreibung====
==Beschreibung==
Das Spiegelwerkzeug erstellt eine gespiegelte Kopie eines ausgewählten Objekts mit der Operation [[Part Mirror/de|Part Mirror]]. Die Kopie ist, genau wie ein [[Draft Clone/de|Draft Clone]], mit dem Originalobjekt verknüpft. Das bedeutet, wenn das Originalobjekt seine Form und Eigenschaften ändert, ändert sich auch die gespiegelte Form.


Der Befehl [[Image:Draft_Mirror.svg|24px]] '''Draft Spiegeln''' erstellt gespiegelte Kopien, [[Part_Mirror/de|Part-Mirror]]-Objekte, von ausgewählten Objekten. Ein [[Part_Mirror/de|Part-Mirror]]-Objekt ist parametrisch, d.h. es aktualisiert sich, wenn sich sein Quellobjekt ändert.
The Mirror tool can be used on 2D shapes created with the [[Draft Workbench|Draft Workbench]], but can also be used on many types of 3D objects such as those created with the [[Part Workbench|Part]], [[PartDesign Workbench|PartDesign]], or [[Arch Workbench|Arch Workbench]]es.


Der Befehl kann auf 2D-Objekte angewendet werden, die im Arbeitsbereich [[Draft_Workbench/de|Draft]] oder im Arbeitsbereich [[Sketcher_Workbench/de|Sketcher]] erstellt wurden, aber auch auf viele 3D-Objekte, wie jene, die in den Arbeitsbereichen [[Part_Workbench/de|Part]], [[PartDesign_Workbench/de|PartDesign]] oder [[Arch_Workbench/de|Arch]] erstellt wurden.
To create copies or clones, and manually place them use [[Draft Move|Draft Move]], [[Draft Rotate|Draft Rotate]], and [[Draft Clone|Draft Clone]].


[[Image:Draft_Mirror_example.jpg|400px]]
[[Image:Draft_Mirror_example.jpg|400px]]
{{Caption|Mirrored object created using a mirroring line}}
{{Caption| Ein Objekt Spiegeln}}


<span id="Usage"></span>
==How to use==
==Anwendung==
# Select an object that you wish to mirror.
# Press the {{Button|[[Image:Draft Mirror.svg|16px]] [[Draft Mirror|Draft Mirror]]}} button. If no object is selected, you will be invited to select one.
# Click a first point on the 3D view, or type a [[Draft_Coordinates|coordinate]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button.
# Click a second point on the 3D view, or type a [[Draft_Coordinates|coordinate]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button. These points define a line, which together with the camera view, define a mirroring plane that is used to create the mirrored object.


Siehe auch: [[Draft_Snap/de|Draft Einrasten]] und [[Draft_Constrain/de|Draft Beschränken]].
After creating the mirrored copy, its binding with the original object can be removed using the {{Button|[[Image:Tree_Part.svg|16px]] [[Part_SimpleCopy|Part Create simple copy]]}} tool.


# Wahlweise ein oder mehrere Objekte auswählen.
A mirrored copy of a Draft object can be turned into a [[Draft Wire|Draft Wire]], by using {{Button|[[Image:Draft Downgrade.svg|16px]] [[Draft Downgrade]]}} then {{Button|[[Image:Draft Upgrade.svg|16px]] [[Draft Upgrade|Draft Upgrade]]}}.
# Es gibt mehrere Möglichkeiten, den Befehl aufzurufen:
#* Die Schaltfläche {{Button|[[Image:Draft_Mirror.svg|16px]] [[Draft_Mirror/de|Spiegeln]]}} drücken.
#* Den Menüeintrag {{MenuCommand|Änderung → [[Image:Draft_Mirror.svg|16px]] Spiegeln}} auswählen.
#* Das Tastaturkürzel {{KEY|M}} dann {{KEY|I}}.
# Wurde noch kein Objekt ausgewählt: Ein Objekt in der [[3D_view/de|3D-Ansicht]] auswählen.
# Der Aufgaben-Bereich {{MenuCommand|Spiegeln}} wird geöffnet. Siehe [[#Optionen|Optionen]] für weitere Informationen.
# Den ersten Punkt der Spiegelebene in der [[3D_view/de|3D-Ansicht]] auswählen, oder die Koordinaten eingeben und die Schaltfläche {{Button|[[Image:Draft_AddPoint.svg|16px]] Punkt eingeben}} drücken.
# Den zweiten Punkt der Spiegelebene in der [[3D_view/de|3D Ansicht]] auswählen, oder die Koordinaten eingeben und die Schaltfläche {{Button|[[Image:Draft_AddPoint.svg|16px]] Punkt eingeben}} drücken.
# Die Spiegelebene wird durch die ausgewählten Punkte und die Normale der [[Draft_SelectPlane/de|Draft-Arbeitsebene]] definiert.


==Options==
<span id="Options"></span>
==Optionen==
* 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.
* 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.
* Hold {{KEY|Ctrl}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance.
* 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.


Die im Aufgaben-Bereich verfügbaren Einzelzeichen-Tastaturkürzel können geändert werden. Siehe [[Draft_Preferences/de|Draft-Einstellungen]]. Die hier genannten Tastenkürzel sind die Standardtastenkürzel.
==Properties==
* {{PropertyData|Source}}: specifies the object to mirror,
* {{PropertyData|Base}}: specifies the base point of the mirror plane.
* {{PropertyData|Normal}}: specifies the normal direction of the mirror plane.


* 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.
==Scripting==
* 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.
{{Emphasis|See also:}} [[Draft API|Draft API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].
* 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}}
* Press {{KEY|S}} to switch [[Draft_Snap|Draft snapping]] on or off.
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the command.

<span id="Notes"></span>
==Hinweise==

* 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.

<span id="Properties"></span>
==Eigenschaften==

Siehe auch: [[property_editor/de|Eigenschafteneditor]].

Ein [[Part_Mirror|Part Mirror]]-Objekt ist von einem [[Part_Feature|Part Feature]]-Objekt abgeleitet und erbt alle Eigenschaften. Es besitzt zusätzlich folgende Eigenschaften:

<span id="Data"></span>
===Daten===

{{TitleProperty|Base}}

* {{PropertyData|Source|Link}}: nennt das gespiegelte Objekt.

{{TitleProperty|Plane}}

* {{PropertyData|Base|Vector}}: bezeichnet den Ursprung der Spiegelfläche.
* {{PropertyData|Normal|Vector}}: bezeichnet die Normale auf die Spiegelfläche.

<span id="Scripting"></span>
==Skripten==

Siehe auch: [https://freecad.github.io/SourceDoc/ Autogenerierte API-Dokumentation] und [[FreeCAD_Scripting_Basics/de|FreeCAD Grundlagen Skripten]].

Zum Spiegeln von Objekten wird die Methode {{incode|mirror}} des Draft-Moduls verwendet.


The Mirror tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following function:
{{Code|code=
{{Code|code=
mirrored_list = mirror(objlist, p1, p2)
mirrored_list = mirror(objlist, p1, p2)
}}
}}


* Creates [[Part Mirror|Part Mirror]] objects from {{incode|objlist}}, which can be 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.
* The mirroring plane is defined by the line built with points {{incode|p1}} and {{incode|p2}}, and parallel to the current view.
* {{incode|p1}} is the first point of the mirror plane.
* {{incode|mirrored_list}} is returned with the new objects.
* {{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.
** {{incode|mirrored_list}} is either a single object or a list of objects, depending on the input {{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}}.

Beispiel:


Example:
{{Code|code=
{{Code|code=
import FeeCAD, Draft
import FreeCAD as App
import Draft


doc = App.newDocument()
place = FreeCAD.Placement(FreeCAD.Vector(1000, 0, 0), FreeCAD.Rotation())
Polygon1 = Draft.makePolygon(3, 750)
Polygon2 = Draft.makePolygon(5, 750, placement=place)


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


Line1 = Draft.makeLine(p1, p2)
p1 = App.Vector(2000, -1000, 0)
mirrored1 = Draft.mirror(Polygon1, p1, p2)
p2 = App.Vector(2000, 1000, 0)


Line2 = Draft.makeLine(-p1, -p2)
line1 = Draft.make_line(p1, p2)
mirrored2 = Draft.mirror([Polygon1, Polygon2], -p1, -p2)
mirrored1 = Draft.mirror(polygon1, p1, p2)

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

doc.recompute()
}}
}}


{{Docnav|[[Draft_Drawing|Drawing]]|[[Draft_Stretch|Stretch]]|[[Draft_Module|Draft]]|IconL=Draft_Drawing.svg|IconC=Workbench_Draft.svg|IconR=Draft_Stretch.svg}}


{{Docnav/de
{{Draft Tools navi}}
|[[Draft_Scale/de|Skalieren]]
|[[Draft_Offset/de|Versatz]]
|[[Draft_Workbench/de|Draft]]
|IconL=Draft_Scale.svg
|IconR=Draft_Offset.svg
|IconC=Workbench_Draft.svg
}}


{{Draft Tools navi{{#translation:}}}}
{{Userdocnavi}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 19:50, 9 January 2024

Draft Spiegeln

Menüeintrag
Änderung → Spiegeln
Arbeitsbereich
Draft, Arch
Standardtastenkürzel
M I
Eingeführt in Version
-
Siehe auch
Draft Klonen

Beschreibung

Der Befehl Draft Spiegeln erstellt gespiegelte Kopien, Part-Mirror-Objekte, von ausgewählten Objekten. Ein Part-Mirror-Objekt ist parametrisch, d.h. es aktualisiert sich, wenn sich sein Quellobjekt ändert.

Der Befehl kann auf 2D-Objekte angewendet werden, die im Arbeitsbereich Draft oder im Arbeitsbereich Sketcher erstellt wurden, aber auch auf viele 3D-Objekte, wie jene, die in den Arbeitsbereichen Part, PartDesign oder Arch erstellt wurden.

Ein Objekt Spiegeln

Anwendung

Siehe auch: Draft Einrasten und Draft Beschränken.

  1. Wahlweise ein oder mehrere Objekte auswählen.
  2. Es gibt mehrere Möglichkeiten, den Befehl aufzurufen:
    • Die Schaltfläche Spiegeln drücken.
    • Den Menüeintrag Änderung → Spiegeln auswählen.
    • Das Tastaturkürzel M dann I.
  3. Wurde noch kein Objekt ausgewählt: Ein Objekt in der 3D-Ansicht auswählen.
  4. Der Aufgaben-Bereich Spiegeln wird geöffnet. Siehe Optionen für weitere Informationen.
  5. Den ersten Punkt der Spiegelebene in der 3D-Ansicht auswählen, oder die Koordinaten eingeben und die Schaltfläche Punkt eingeben drücken.
  6. Den zweiten Punkt der Spiegelebene in der 3D Ansicht auswählen, oder die Koordinaten eingeben und die Schaltfläche Punkt eingeben drücken.
  7. Die Spiegelebene wird durch die ausgewählten Punkte und die Normale der Draft-Arbeitsebene definiert.

Optionen

Die im Aufgaben-Bereich verfügbaren Einzelzeichen-Tastaturkürzel können geändert werden. Siehe Draft-Einstellungen. Die hier genannten Tastenkürzel sind die Standardtastenkürzel.

  • 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
  • Press S to switch Draft snapping on or off.
  • Press Esc or the Close button to abort the command.

Hinweise

Eigenschaften

Siehe auch: Eigenschafteneditor.

Ein Part Mirror-Objekt ist von einem Part Feature-Objekt abgeleitet und erbt alle Eigenschaften. Es besitzt zusätzlich folgende Eigenschaften:

Daten

Base

  • DatenSource (Link): nennt das gespiegelte Objekt.

Plane

  • DatenBase (Vector): bezeichnet den Ursprung der Spiegelfläche.
  • DatenNormal (Vector): bezeichnet die Normale auf die Spiegelfläche.

Skripten

Siehe auch: Autogenerierte API-Dokumentation und FreeCAD Grundlagen Skripten.

Zum Spiegeln von Objekten wird die Methode mirror des Draft-Moduls verwendet.

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()