From 97a2bf207f0ba5c6f4ac810074a054b4e3afd27f Mon Sep 17 00:00:00 2001 From: dish Date: Mon, 14 Oct 2024 15:50:16 +0000 Subject: [PATCH] [bos #40618] [CEA] Offset/Thickness Feature Make Offset and Thickness features discoverable in Find Action dialog and assignable to shortcuts. --- src/FeaturesPlugin/doc/offsetFeature.rst | 6 ++-- .../icons/{offset.png => offset3D.png} | Bin ...ffset_partial.png => offset3D_partial.png} | Bin src/FeaturesPlugin/offset_widget.xml | 4 +-- src/FeaturesPlugin/plugin-Features.xml | 2 +- src/SHAPERGUI/resources/LightApp.xml.in | 2 ++ src/SHAPERGUI/resources/action_assets.json | 26 ++++++++++++++++++ 7 files changed, 34 insertions(+), 6 deletions(-) rename src/FeaturesPlugin/icons/{offset.png => offset3D.png} (100%) rename src/FeaturesPlugin/icons/{offset_partial.png => offset3D_partial.png} (100%) diff --git a/src/FeaturesPlugin/doc/offsetFeature.rst b/src/FeaturesPlugin/doc/offsetFeature.rst index 0b96ccf33..2fac29802 100644 --- a/src/FeaturesPlugin/doc/offsetFeature.rst +++ b/src/FeaturesPlugin/doc/offsetFeature.rst @@ -14,13 +14,13 @@ To create an Offset in the active part: Two Offset algorithms are: -.. figure:: images/offset.png +.. figure:: images/offset3D.png :align: left :height: 24px offset the whole shape by the same value -.. figure:: images/offset_partial.png +.. figure:: images/offset3D_partial.png :align: left :height: 24px @@ -40,7 +40,7 @@ Input fields: - **Shape** defines the base shape (solid, shell or face) selected in 3D OCC viewer or object browser; - **Distance** defines the offset value. Negative value meaning inner offset; -- **Join by pipes** check box defines the mode of filling the gaps between translated +- **Join by pipes** check box defines the mode of filling the gaps between translated adjacent surfaces: - if Join by pipes is activated, they are filled with pipes; diff --git a/src/FeaturesPlugin/icons/offset.png b/src/FeaturesPlugin/icons/offset3D.png similarity index 100% rename from src/FeaturesPlugin/icons/offset.png rename to src/FeaturesPlugin/icons/offset3D.png diff --git a/src/FeaturesPlugin/icons/offset_partial.png b/src/FeaturesPlugin/icons/offset3D_partial.png similarity index 100% rename from src/FeaturesPlugin/icons/offset_partial.png rename to src/FeaturesPlugin/icons/offset3D_partial.png diff --git a/src/FeaturesPlugin/offset_widget.xml b/src/FeaturesPlugin/offset_widget.xml index 02f54bb57..8418dda7e 100644 --- a/src/FeaturesPlugin/offset_widget.xml +++ b/src/FeaturesPlugin/offset_widget.xml @@ -15,12 +15,12 @@ + icon="icons/Features/offset3D.png"> + icon="icons/Features/offset3D_partial.png"> + icon="icons/Features/offset3D.png" helpfile="offsetFeature.html"> diff --git a/src/SHAPERGUI/resources/LightApp.xml.in b/src/SHAPERGUI/resources/LightApp.xml.in index 06636c0fb..c43015b0d 100644 --- a/src/SHAPERGUI/resources/LightApp.xml.in +++ b/src/SHAPERGUI/resources/LightApp.xml.in @@ -192,5 +192,7 @@ + + diff --git a/src/SHAPERGUI/resources/action_assets.json b/src/SHAPERGUI/resources/action_assets.json index cd440418d..318bb46d9 100644 --- a/src/SHAPERGUI/resources/action_assets.json +++ b/src/SHAPERGUI/resources/action_assets.json @@ -1623,5 +1623,31 @@ "tooltip": "Créer un réseau de tuyaux" } } + }, + "SHAPER/Offset3d": { + "iconPath": "%SHAPER_ROOT_DIR%/share/salome/resources/shaper/icons/Features/offset3D.png", + "langDependentAssets": { + "en": { + "name": "Offset (3D)", + "tooltip": "Offset face or shell" + }, + "fr": { + "name": "Offset (3D)", + "tooltip": "Face ou coque décalée" + } + } + }, + "SHAPER/Thickness": { + "iconPath": "%SHAPER_ROOT_DIR%/share/salome/resources/shaper/icons/Features/thickness.png", + "langDependentAssets": { + "en": { + "name": "Thickness (3D)", + "tooltip": "Thicken faces" + }, + "fr": { + "name": "Thickness (3D)", + "tooltip": "Épaissir les visages" + } + } } } \ No newline at end of file -- 2.39.2