]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
[bos #40618] [CEA] Offset/Thickness Feature
authordish <dmitrii.shvydkoi@opencascade.com>
Mon, 14 Oct 2024 15:50:16 +0000 (15:50 +0000)
committerdish <dmitrii.shvydkoi@opencascade.com>
Mon, 14 Oct 2024 15:50:16 +0000 (15:50 +0000)
Make Offset and Thickness features discoverable in Find Action dialog and assignable to shortcuts.

src/FeaturesPlugin/doc/offsetFeature.rst
src/FeaturesPlugin/icons/offset.png [deleted file]
src/FeaturesPlugin/icons/offset3D.png [new file with mode: 0644]
src/FeaturesPlugin/icons/offset3D_partial.png [new file with mode: 0644]
src/FeaturesPlugin/icons/offset_partial.png [deleted file]
src/FeaturesPlugin/offset_widget.xml
src/FeaturesPlugin/plugin-Features.xml
src/SHAPERGUI/resources/LightApp.xml.in
src/SHAPERGUI/resources/action_assets.json

index 0b96ccf33afe1e42df3cb4895360eb4857586194..2fac2980232bcc5aa322348845802633c7ab00b6 100644 (file)
@@ -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 <b>Join by pipes</b> 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 (file)
index 47e03cc..0000000
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 (file)
index 0000000..47e03cc
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 (file)
index 0000000..ced1d32
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 (file)
index ced1d32..0000000
Binary files a/src/FeaturesPlugin/icons/offset_partial.png and /dev/null differ
index 02f54bb573e9776df459175c448d4ba18e4b7690..8418dda7e98420b6b6a294614ace01ba55be383f 100644 (file)
   <toolbox id="creation_method">
     <box id="offset_equal"
          title="Offset"
-         icon="icons/Features/offset.png">
+         icon="icons/Features/offset3D.png">
       <boolvalue id="pipe_joint" label="Join by pipes" default="true" tooltip="Join by pipes"/>
     </box>
     <box id="offset_partial"
          title="Partial offset"
-         icon="icons/Features/offset_partial.png">
+         icon="icons/Features/offset3D_partial.png">
       <multi_selector id="faces_to_offset"
                       label="Faces to offset:"
                       tooltip="Select faces of the main shape."
index 851f659c793888f6aa01dd26f5e9d728476c2b0b..113c0ab4c4f469a836393ab37463f98d98a375a6 100644 (file)
@@ -6,7 +6,7 @@
         <source path="scale_widget.xml"/>
       </feature>
       <feature id="Offset3d" title="Offset" tooltip="Perform offset"
-               icon="icons/Features/offset.png" helpfile="offsetFeature.html">
+               icon="icons/Features/offset3D.png" helpfile="offsetFeature.html">
         <source path="offset_widget.xml"/>
       </feature>
     </group>
index 06636c0fb0ff98d0067cd999add67d94f911da3c..c43015b0df5d9846016b036da390462c936624bf 100644 (file)
     <parameter name="midSurface" value=""/>
     <parameter name="pipeNetwork" value=""/>
     <parameter name="SketchDrawer" value=""/>
+    <parameter name="Offset3d" value=""/>
+    <parameter name="Thickness" value=""/>
   </section>
 </document>
index cd440418db9dd5faed02be639a5ff70c8f176777..318bb46d9cd0169212ed8b554437b5e3844c2f99 100644 (file)
                 "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