FEM: rename CommandMeshFromShape into _CommandMeshNetgenFromShape
This commit is contained in:
parent
30e54ec0e2
commit
1c0920d624
|
@ -70,7 +70,7 @@ SET(FemScripts_SRCS
|
|||
_CommandConstraintSelfWeight.py
|
||||
_CommandMaterialMechanicalNonlinear.py
|
||||
_CommandMechanicalMaterial.py
|
||||
_CommandMeshFromShape.py
|
||||
_CommandMeshNetgenFromShape.py
|
||||
_CommandPurgeResults.py
|
||||
_CommandRunSolver.py
|
||||
_CommandShellThickness.py
|
||||
|
|
|
@ -24,7 +24,7 @@ INSTALL(
|
|||
TestFem.py
|
||||
|
||||
FemCommands.py
|
||||
_CommandMeshFromShape.py
|
||||
_CommandMeshNetgenFromShape.py
|
||||
_CommandPurgeResults.py
|
||||
_CommandRunSolver.py
|
||||
_CommandControlSolver.py
|
||||
|
|
|
@ -58,7 +58,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
|||
*fem << "Fem_Analysis"
|
||||
<< "Fem_SolverCalculix"
|
||||
// << "Fem_SolverZ88"
|
||||
<< "Fem_MeshFromShape"
|
||||
<< "Fem_MeshNetgenFromShape"
|
||||
<< "Fem_MechanicalMaterial"
|
||||
<< "Fem_MaterialMechanicalNonlinear"
|
||||
<< "Fem_BeamSection"
|
||||
|
@ -118,7 +118,7 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
|||
*fem << "Fem_Analysis"
|
||||
<< "Fem_SolverCalculix"
|
||||
<< "Fem_SolverZ88"
|
||||
<< "Fem_MeshFromShape"
|
||||
<< "Fem_MeshNetgenFromShape"
|
||||
<< "Fem_MechanicalMaterial"
|
||||
<< "Fem_MaterialMechanicalNonlinear"
|
||||
<< "Fem_BeamSection"
|
||||
|
|
|
@ -49,7 +49,7 @@ class FemWorkbench (Workbench):
|
|||
import _CommandRunSolver
|
||||
import _CommandPurgeResults
|
||||
import _CommandControlSolver
|
||||
import _CommandMeshFromShape
|
||||
import _CommandMeshNetgenFromShape
|
||||
import _CommandAnalysis
|
||||
import _CommandShellThickness
|
||||
import _CommandBeamSection
|
||||
|
|
|
@ -20,11 +20,11 @@
|
|||
# * *
|
||||
# ***************************************************************************
|
||||
|
||||
__title__ = "Command Mesh From Shape"
|
||||
__title__ = "Command Mesh Netgen From Shape"
|
||||
__author__ = "Juergen Riegel"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
## @package CommandMeshFromShape
|
||||
## @package CommandMeshNetgenFromShape
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
|
@ -33,17 +33,17 @@ import FreeCADGui
|
|||
from PySide import QtCore
|
||||
|
||||
|
||||
class _CommandMeshFromShape(FemCommands):
|
||||
# the Fem_MeshFromShape command definition
|
||||
class _CommandMeshNetgenFromShape(FemCommands):
|
||||
# the Fem_MeshNetgenFromShape command definition
|
||||
def __init__(self):
|
||||
super(_CommandMeshFromShape, self).__init__()
|
||||
super(_CommandMeshNetgenFromShape, self).__init__()
|
||||
self.resources = {'Pixmap': 'fem-fem-mesh-from-shape',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_MeshFromShape", "FEM mesh from shape"),
|
||||
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_MeshFromShape", "Create a FEM volume mesh from a solid shape")}
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_MeshFromShape", "FEM mesh from shape by Netgen"),
|
||||
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_MeshFromShape", "Create a FEM volume mesh from a solid or face shape by Netgen internal mesher")}
|
||||
self.is_active = 'with_part_feature'
|
||||
|
||||
def Activated(self):
|
||||
FreeCAD.ActiveDocument.openTransaction("Create FEM mesh")
|
||||
FreeCAD.ActiveDocument.openTransaction("Create FEM mesh Netgen")
|
||||
FreeCADGui.addModule("FemGui")
|
||||
sel = FreeCADGui.Selection.getSelection()
|
||||
if (len(sel) == 1):
|
||||
|
@ -56,4 +56,4 @@ class _CommandMeshFromShape(FemCommands):
|
|||
|
||||
|
||||
if FreeCAD.GuiUp:
|
||||
FreeCADGui.addCommand('Fem_MeshFromShape', _CommandMeshFromShape())
|
||||
FreeCADGui.addCommand('Fem_MeshNetgenFromShape', _CommandMeshNetgenFromShape())
|
Loading…
Reference in New Issue
Block a user