</message>
</context>
+ <!-- Defeaturing -->
+ <context>
+ <name>Defeaturing</name>
+ <message>
+ <source>Defeaturing</source>
+ <translation>Vaincre</translation>
+ </message>
+ <message>
+ <source>Faces to remove</source>
+ <translation>Visages à retirer</translation>
+ </message>
+ <message>
+ <source>Select faces</source>
+ <translation>Sélectionnez des faces</translation>
+ </message>
+ </context>
+ <context>
+ <name>Defeaturing:FeaturesPlugin_ValidatorDefeaturingSelection</name>
+ <message>
+ <source>Error: This validator can only work with selection list attributes.</source>
+ <translation>Erreur: ce validateur ne peut fonctionner qu'avec des attributs de liste de sélection.</translation>
+ </message>
+ <message>
+ <source>Error: Empty attribute selection.</source>
+ <translation>La sélection d'attribut est vide.</translation>
+ </message>
+ <message>
+ <source>Error: Empty selection context.</source>
+ <translation>Erreur: contexte de sélection vide.</translation>
+ </message>
+ <message>
+ <source>Error: Not all selected shapes are sub-shapes of solids.</source>
+ <translation>Erreur: toutes les formes sélectionnées ne sont pas des sous-formes de solides.</translation>
+ </message>
+ </context>
+
<!-- Extrusion -->
<context>
<name>Extrusion</name>
<translation>Выберите вспомогательные объекты.</translation>
</message>
</context>
+
+ <!-- Defeaturing -->
+ <context>
+ <name>Defeaturing</name>
+ <message>
+ <source>Defeaturing</source>
+ <translation>Удаление фичеров</translation>
+ </message>
+ <message>
+ <source>Faces to remove</source>
+ <translation>Удаляемые грани</translation>
+ </message>
+ <message>
+ <source>Select faces</source>
+ <translation>Выберите грани</translation>
+ </message>
+ </context>
+ <context>
+ <name>Defeaturing:FeaturesPlugin_ValidatorDefeaturingSelection</name>
+ <message>
+ <source>Error: This validator can only work with selection list attributes.</source>
+ <translation>Ошибка: валидатор поддерживает только аттрибуты типа SelectionList.</translation>
+ </message>
+ <message>
+ <source>Error: Empty attribute selection.</source>
+ <translation>Ошибка: незаполненный аттрибут.</translation>
+ </message>
+ <message>
+ <source>Error: Empty selection context.</source>
+ <translation>Ошибка: пустой контекст.</translation>
+ </message>
+ <message>
+ <source>Error: Not all selected shapes are sub-shapes of solids.</source>
+ <translation>Ошибка: не все выбранные объекты являются подэлементами твердых тел.</translation>
+ </message>
+ </context>
</TS>
commonFeature.rst
copyFeature.rst
cutFeature.rst
+ defeaturingFeature.rst
extrusionCutFeature.rst
extrusionFeature.rst
extrusionFuseFeature.rst
--- /dev/null
+
+ .. _tui_defeaturing:
+
+Perform Defeaturing
+===================
+
+.. literalinclude:: examples/defeaturing.py
+ :linenos:
+ :language: python
+
+:download:`Download this script <examples/defeaturing.py>`
+
--- /dev/null
+.. |defeaturing.icon| image:: images/defeaturing.png
+
+Defeaturing
+===========
+
+**Defeaturing** operation is intended for removal of the unwanted parts or features from the model. These parts can be holes, protrusions, gaps, chamfers, fillets, etc.
+
+To create a Defeaturing in the active part:
+
+#. select in the Main Menu *Feature -> Defeaturing* item or
+#. click |defeaturing.icon| **Defeaturing** button in the toolbar.
+
+After that select one or more faces of solids to suppress them. The Defeaturing works with faces from comsolids and compounds of solids as well.
+
+.. image:: images/defeaturing_property_panel.png
+ :align: center
+
+.. centered::
+ Defeaturing property panel
+
+Input field:
+
+- **Faces to remove** panel contains the list of faces which should be suppressed.
+
+**TUI Command**:
+
+.. py:function:: model.addDefeaturing(Part_doc, [faces])
+
+ :param part: The current part object.
+ :param list: A list of faces in format *model.selection("FACE", shape)*.
+ :return: Created object.
+
+Result
+""""""
+
+Result of **Defeaturing** is shown below.
+
+.. image:: images/defeaturing_result.png
+ :align: center
+
+.. centered::
+ Defeaturing operation
+
+**See Also** a sample TUI Script of :ref:`tui_defeaturing` operation.
+
+References
+""""""""""
+
+For more information, please, visit `OpenCASCADE Documentation <https://dev.opencascade.org/doc/overview/html/occt_user_guides__modeling_algos.html#occt_modalg_defeaturing>`_.
--- /dev/null
+from salome.shaper import model
+
+model.begin()
+partSet = model.moduleDocument()
+Part_1 = model.addPart(partSet)
+Part_1_doc = Part_1.document()
+Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
+Fillet_1_objects = [model.selection("EDGE", "[Box_1_1/Left][Box_1_1/Top]"), model.selection("EDGE", "[Box_1_1/Front][Box_1_1/Left]"), model.selection("EDGE", "[Box_1_1/Front][Box_1_1/Top]")]
+Fillet_1 = model.addFillet(Part_1_doc, Fillet_1_objects, 2)
+Defeaturing_1 = model.addDefeaturing(Part_1_doc, [model.selection("FACE", "Fillet_1_1/GF:Fillet&Fillet_1_1/FilletSelected_3"), model.selection("FACE", "(Fillet_1_1/GF:Fillet&Fillet_1_1/FilletSelected_1)(Fillet_1_1/GF:Fillet&Fillet_1_1/FilletSelected_2)(Fillet_1_1/GF:Fillet&Fillet_1_1/FilletSelected_3)")])
+
+model.end()