From: dish Date: Mon, 14 Oct 2024 15:50:16 +0000 (+0000) Subject: [bos #40618] [CEA] Offset/Thickness Feature X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=97a2bf207f0ba5c6f4ac810074a054b4e3afd27f;p=modules%2Fshaper.git [bos #40618] [CEA] Offset/Thickness Feature Make Offset and Thickness features discoverable in Find Action dialog and assignable to shortcuts. --- 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/offset.png deleted file mode 100644 index 47e03cc92..000000000 Binary files a/src/FeaturesPlugin/icons/offset.png and /dev/null differ diff --git a/src/FeaturesPlugin/icons/offset3D.png b/src/FeaturesPlugin/icons/offset3D.png new file mode 100644 index 000000000..47e03cc92 Binary files /dev/null and b/src/FeaturesPlugin/icons/offset3D.png differ diff --git a/src/FeaturesPlugin/icons/offset3D_partial.png b/src/FeaturesPlugin/icons/offset3D_partial.png new file mode 100644 index 000000000..ced1d32df Binary files /dev/null and b/src/FeaturesPlugin/icons/offset3D_partial.png differ diff --git a/src/FeaturesPlugin/icons/offset_partial.png b/src/FeaturesPlugin/icons/offset_partial.png deleted file mode 100644 index ced1d32df..000000000 Binary files a/src/FeaturesPlugin/icons/offset_partial.png and /dev/null differ 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