mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
try icon and toolbar on SMESH plugin MeshCut: OK
This commit is contained in:
parent
212d923cf8
commit
3ecbeb028a
@ -77,6 +77,7 @@ SET(SMESH_RESOURCES_FILES
|
||||
mesh_octahedron.png
|
||||
mesh_orientation.png
|
||||
mesh.png
|
||||
mesh_plugins_meshcut.png
|
||||
mesh_polygon.png
|
||||
mesh_polyhedron.png
|
||||
mesh_pyramid_n.png
|
||||
|
BIN
resources/mesh_plugins_meshcut.png
Normal file
BIN
resources/mesh_plugins_meshcut.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1006 B |
@ -21,6 +21,7 @@
|
||||
#
|
||||
import salome_pluginsmanager
|
||||
import os
|
||||
from qtsalome import QIcon
|
||||
|
||||
try:
|
||||
from spadderPlugin import runSpadderPlugin
|
||||
@ -33,9 +34,10 @@ except Exception as e:
|
||||
|
||||
try:
|
||||
from meshcut_plugin import MeshCut
|
||||
icon_file = os.path.join(os.getenv('SMESH_ROOT_DIR'),'share', 'salome', 'resources', 'smesh', 'mesh_plugins_meshcut.png')
|
||||
salome_pluginsmanager.AddFunction('MeshCut',
|
||||
'Cut a tetrahedron mesh by a plane',
|
||||
MeshCut)
|
||||
MeshCut, icon=QIcon(icon_file))
|
||||
|
||||
except Exception as e:
|
||||
salome_pluginsmanager.logger.info('ERROR: MeshCut plug-in is unavailable: {}'.format(e))
|
||||
|
Loading…
Reference in New Issue
Block a user