Sketcher ConstrainPerpendicular/pl: Difference between revisions

From FreeCAD Documentation
No edit summary
(Created page with "Zapoznaj się również z informacjami na stronie Pomoce kreślarskie.")
Line 27: Line 27:
==Użycie==
==Użycie==


See also: [[Sketcher_Workbench#Drawing_aids|Drawing aids]].
Zapoznaj się również z informacjami na stronie [[Sketcher_Workbench/pl#Pomoce_kreślarskie|Pomoce kreślarskie]].


===[[Sketcher_Workbench#Continue_modes|Continue mode]]===
===[[Sketcher_Workbench#Continue_modes|Continue mode]]===

Revision as of 18:41, 25 April 2024

Szkicownik: Wiązanie prostopadłości

Lokalizacja w menu
Szkic → Wiązania szkicownika → Wiązanie prostopadłości
Środowisko pracy
Szkicownik
Domyślny skrót
N
Wprowadzono w wersji
-
Zobacz także
Szkicownik: Wiązanie kąta

Opis

Narzędzie Wiązanie prostopadłości wymusza prostopadłość dwóch linii lub dwóch krawędzi lub osi. Linie są traktowane jako nieskończone, a otwarte krzywe są również wirtualnie wydłużone. Wiązanie może również łączyć dwie krawędzie, wymuszając ich prostopadłość w miejscu połączenia.

Użycie

Zapoznaj się również z informacjami na stronie Pomoce kreślarskie.

Continue mode

  1. Make sure there is no selection.
  2. There are several ways to invoke the tool:
    • Press the Constrain perpendicular button.
    • Select the Sketch → Sketcher constraints → Constrain perpendicular option from the menu.
    • introduced in version 1.0: Right-click in the 3D view and select the Constrain → Constrain perpendicular option from the context menu.
    • Use the keyboard shortcut: N.
  3. The cursor changes to a cross with the tool icon.
  4. Do one of the following:
    • Select two edges. One of the edges must be a straight line or an axis. The other can be any edge except a B-spline.
    • Select a point and two edges (in that order).
    • Select an edge, a point and another edge (idem).
  5. A Perpendicular constraint is added. If a point and two edges have been selected, up to two Point on object constraints can also be added. See Examples.
  6. Optionally keep creating constraints.
  7. To finish, right-click or press Esc, or start another geometry or constraint creation tool.

Run-once mode

  1. Do one of the following:
    • Select two edges (see above).
    • Select two endpoints belonging to different edges.
    • Select an edge and the endpoint of another edge (in any order).
    • Select a point and two edges (idem).
  2. Invoke the tool as explained above, or with the following additional option:
  3. A Perpendicular constraint is added. If a point and two edges have been selected, up to two Point on object constraints can also be added. See Examples.

Examples

Pomiędzy dwoma krzywymi (prostopadłość bezpośrednia)

The two edges are made perpendicular at their (virtual) intersection. If one of the edges is a conic, a Point object that has a Point on object constraint with both (extended) edges is added.

Między dwoma punktami końcowymi (prostopadłość między punktami)

W tym trybie zbierzne są punkty końcowe, a połączenie jest wykonane pod kątem prostym. Tryb ten jest stosowany, gdy wybrane zostały dwa punkty końcowe dwóch krzywych.

Między krzywą a punktem końcowym (prostopadłość punktu do krzywej)

W tym trybie, punkt końcowy jednej krzywej jest związany z położeniem na drugiej, a krzywe są ustawione prostopadle do punktu. Tryb ten jest stosowany, gdy zostały wybrane krzywa i punkt końcowy innej krzywej.

Pomiędzy dwoma krzywymi w punkcie (prostopadłym do punktu) (v0.15)

W tym trybie, dwie krzywe są wykonane prostopadle, a punkt prostopadłości znajduje się na trasie. Tryb ten jest stosowany w przypadku wybrania dwóch krzywych i punktu.

Tworzenie skryptów

Ograniczenie prostopadłe może być utworzone przez makropolecenie i z konsoli Pyton za pomocą następujących narzędzi:

# direct perpendicularity
Sketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,icurve2))

# point-to-point perpendicularity
Sketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,pointpos1,icurve2,pointpos2))

# point-to-curve perpendicularity
Sketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,pointpos1,icurve2))

# perpendicular-via-point (plain constraint, helpers are not added automatically)
Sketch.addConstraint(Sketcher.Constraint('PerpendicularViaPoint',icurve1,icurve2,geoidpoint,pointpos))

Gdzie:

  • Sketch jest obiektem szkicu
  • icurve1, icurve2 są dwiema liczbami całkowitymi określającymi krzywe, które mają być wykonane prostopadle. Liczby całkowite są indeksami w szkicu (wartość zwracana przez Sketch.addGeometry).
  • pointpos1, pointpos2 powinny mieć wartość 1 dla punktu początkowego i 2 dla końcowego.
  • geoid point i pointpos w PerpendicularViaPoint są indeksami określającymi punkt prostopadłościanu.

Strona skrypty szkicownika wyjaśnia wartości, które mogą być użyte do icurve1, icurve2, pointpos1, pointpos2 i geoidpoint, i zawiera dalsze przykłady, jak tworzyć wiązania ze skryptów Python.