Salome HOME
ee096cca49552038e13dc8c4bd5d6bdceea4d357
[modules/shaper.git] / src / SketchPlugin / doc / trimFeature.rst
1
2 Trim
3 ====
4
5 | The Trim operation trims away the specified segment of the curve.
6 | The curve should have points lying on it or intersections with other curves.
7 | Open curves (line or arc) require one or more points; closed curves (circle) require two or more points.
8
9 To create a Trim in the active Sketch:
10
11 #. select in the Main Menu *Sketch - > Trim* item  or
12 #. click **Trim** button in Sketch toolbar:
13
14 .. image:: images/trim.png
15    :align: center
16
17 .. centered::
18    **Trim**  button
19
20 Property panel:
21
22 .. image:: images/Trim_panel.png
23   :align: center
24
25 .. centered::
26    Trim
27
28 Input fields:
29
30 - **Segment** is used to select a segment to remove in the view.
31
32 The selected segment is highlighted in the view:
33
34 .. image:: images/Trim_segment_sel.png
35    :align: center
36
37 .. centered::
38    The segment to remove
39
40 **TUI Command**: *Sketch_1.addTrim(Feature, PositionPoint)*
41
42 **Arguments**:   feature (line, arc or circle) and position point (a point on or closest to the segment to remove)
43
44 Result
45 """"""
46
47 Created Trim appears in the view.
48
49 .. image:: images/Trim_res.png
50            :align: center
51
52 .. centered::
53    Created trim
54
55 **See Also** a sample TUI Script of :ref:`tui_create_trim` operation.