Rysunek Roboczy: Odbicie lustrzane

From FreeCAD Documentation
Revision as of 14:05, 25 November 2023 by Kaktus (talk | contribs) (Created page with "# Opcjonalnie wybierz jeden lub więcej obiektów. # Polecenie można wywołać na kilka sposobów: #* Naciśnij przycisk {{Button|16px Odbicie lustrzane}}. #* Wybierz z menu opcję {{MenuCommand|Modyfikacja → 16px Odbicie lustrzane}}. #* Użyj skrótu klawiaturowego: {{KEY|M}}, a następnie {{KEY|I}}. # Jeśli nie wybrałeś jeszcze żadnego obiektu: wybierz obiekt w oknie widoku 3D....")

Rysunek Roboczy: Odbicie lustrzane

Lokalizacja w menu
Modyfikacja → Mirror
Środowisko pracy
Rysunek Roboczy, Architektura
Domyślny skrót
M I
Wprowadzono w wersji
-
Zobacz także
Klonuj

Opis

Polecenie Odbicie lustrzane tworzy lustrzane kopie obiektów Odbicie lustrzane środowiska pracy Część z wybranych obiektów. Obiekt Odbicie lustrzane środowiska pracy Część jest parametryczny, więc będzie aktualizowany, jeśli zmieni się jego obiekt źródłowy.

Narzędzie Przesuń może być używane na obiektach 2D utworzonych za pomocą środowisk pracy Rysunek Roboczy lub Szkicownik, ale może być również używane dla wielu typów obiektów 3D, takich jak te utworzone za pomocą środowisk pracy Część, Projekt Części lub Architektura.

Tworzenie kopii lustrzanej obiektu.

Użycie

Zobacz także strony: Rysunek Roboczy: Przyciąganie i Rysunek Roboczy: Wiązania.

  1. Opcjonalnie wybierz jeden lub więcej obiektów.
  2. Polecenie można wywołać na kilka sposobów:
    • Naciśnij przycisk Odbicie lustrzane.
    • Wybierz z menu opcję Modyfikacja → Odbicie lustrzane.
    • Użyj skrótu klawiaturowego: M, a następnie I.
  3. Jeśli nie wybrałeś jeszcze żadnego obiektu: wybierz obiekt w oknie widoku 3D.
  4. Otworzy się panel zadań Odbicie lustrzane. Więcej informacji znajduje się w sekcji Opcje.
  5. Wybierz pierwszy punkt płaszczyzny lustra w oknie widoku 3D lub wpisz współrzędne i naciśnij przycisk Wprowadź punkt.
  6. Wybierz drugi punkt płaszczyzny lustra w oknie widoku 3D lub wpisz współrzędne i naciśnij przycisk Wprowadź punkt.
  7. Płaszczyzna lustrzana jest definiowana przez wybrane punkty i normalną Płaszczyzna robocza szkicu.

Opcje

Wspomniane tutaj skróty klawiaturowe mogą być zmienione. Zobacz stronę Rysunek Roboczy: Preferencje.

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

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

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

Plane

  • DANEBase (Vector): specifies the base point of the mirror plane.
  • DANENormal (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.

Example:

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