Salome HOME
Copyright update 2022
[modules/shaper.git] / src / SketchPlugin / doc / perpendicularFeature.rst
1 .. _sketchPerpendicular:
2 .. |Perpendicular.icon|    image:: images/Perpendicular.png
3
4 Perpendicular constraint
5 ========================
6
7 Perpendicular constraint fixes two lines at 90 degrees to one another.
8 For a line and a circle/arc the perpendicular constraint fixes the center of circle/arc to be on a line.
9
10 To create a Perpendicular constraint in the active Sketch:
11
12 #. select in the Main Menu *Sketch - > Perpendicular* item  or
13 #. click |Perpendicular.icon| **Perpendicular** button in Sketch toolbar:
14
15 Property panel:
16
17 .. figure:: images/Perpendicular_panel.png
18    :align: center
19
20 Input fields:
21
22 - **First object** is the first line, circle or arc selected in the view.
23 - **Second object** is the second line, circle or arc selected in the view.
24
25 After the objects are selected, a special sign will be added to each of them in the view.
26
27 If one of selected objects is circular, then another has to be a straight line.
28
29 **TUI Command**:
30
31 .. py:function:: Sketch_1.setPerpendicular(Line1, Line2)
32
33     :param object: Line 1.
34     :param object: Line 2.
35     :return: Result object.
36
37 Result
38 """"""
39
40 Created Perpendicular constraint appears in the view.
41
42 .. figure:: images/Perpendicular_res.png
43    :align: center
44
45    Created perpendicular constraint
46
47 **See Also** a sample TUI Script of :ref:`tui_create_perpendicular` operation.