mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 22:00:33 +05:00
Swig flag for python 3 + various fixes
This commit is contained in:
parent
96367c288d
commit
42c7028440
@ -145,7 +145,7 @@ def AddNewAlgorithms(IOR):
|
|||||||
|
|
||||||
res, AlgorithmsRoot = mySComponentMesh.FindSubObject (Tag_AlgorithmsRoot)
|
res, AlgorithmsRoot = mySComponentMesh.FindSubObject (Tag_AlgorithmsRoot)
|
||||||
if AlgorithmsRoot is None or res == 0:
|
if AlgorithmsRoot is None or res == 0:
|
||||||
AlgorithmsRoot = myStudyBuilde.NewObjectToTag (mySComponentMesh, Tag_AlgorithmsRoot)
|
AlgorithmsRoot = myStudyBuilder.NewObjectToTag (mySComponentMesh, Tag_AlgorithmsRoot)
|
||||||
aName = myStudyBuilder.FindOrCreateAttribute(AlgorithmsRoot, "AttributeName")
|
aName = myStudyBuilder.FindOrCreateAttribute(AlgorithmsRoot, "AttributeName")
|
||||||
aName.SetValue("Algorithms")
|
aName.SetValue("Algorithms")
|
||||||
aSelAttr = myStudyBuilder.FindOrCreateAttribute(AlgorithmsRoot, "AttributeSelectable")
|
aSelAttr = myStudyBuilder.FindOrCreateAttribute(AlgorithmsRoot, "AttributeSelectable")
|
||||||
@ -156,7 +156,7 @@ def AddNewAlgorithms(IOR):
|
|||||||
# Add New Algorithms
|
# Add New Algorithms
|
||||||
newHypo = myStudyBuilder.NewObject(AlgorithmsRoot)
|
newHypo = myStudyBuilder.NewObject(AlgorithmsRoot)
|
||||||
aPixmap = myStudyBuilder.FindOrCreateAttribute(newHypo, "AttributePixMap")
|
aPixmap = myStudyBuilder.FindOrCreateAttribute(newHypo, "AttributePixMap")
|
||||||
aPixmap = anAttr._narrow(SALOMEDS.AttributePixMap)
|
aPixmap = aPixmap._narrow(SALOMEDS.AttributePixMap)
|
||||||
H = orb.string_to_object(IOR)
|
H = orb.string_to_object(IOR)
|
||||||
aType = H.GetName(); #QString in fact
|
aType = H.GetName(); #QString in fact
|
||||||
aPixmap.SetPixMap( "mesh_tree_algo.png_" + aType )
|
aPixmap.SetPixMap( "mesh_tree_algo.png_" + aType )
|
||||||
|
@ -76,7 +76,6 @@ algo3d.SetMEDName(results)
|
|||||||
algo3d.SetNbPart(4)
|
algo3d.SetNbPart(4)
|
||||||
algo3d.SetBackground(False)
|
algo3d.SetBackground(False)
|
||||||
algo3d.SetKeepFiles(False)
|
algo3d.SetKeepFiles(False)
|
||||||
algo3d.SetToMeshHoles(True)
|
|
||||||
|
|
||||||
# Launch meshers
|
# Launch meshers
|
||||||
# --------------
|
# --------------
|
||||||
|
@ -84,7 +84,7 @@ SET_DIRECTORY_PROPERTIES(PROPERTIES INCLUDE_DIRECTORIES "${_cmake_include_direct
|
|||||||
|
|
||||||
# swig flags
|
# swig flags
|
||||||
SET_SOURCE_FILES_PROPERTIES(libSMESH_Swig.i PROPERTIES CPLUSPLUS ON)
|
SET_SOURCE_FILES_PROPERTIES(libSMESH_Swig.i PROPERTIES CPLUSPLUS ON)
|
||||||
SET_SOURCE_FILES_PROPERTIES(libSMESH_Swig.i PROPERTIES SWIG_DEFINITIONS "-shadow")
|
SET_SOURCE_FILES_PROPERTIES(libSMESH_Swig.i PROPERTIES SWIG_FLAGS "-py3")
|
||||||
SET_SOURCE_FILES_PROPERTIES(libSMESH_swig_wrap.cpp PROPERTIES COMPILE_FLAGS "-DHAVE_CONFIG_H")
|
SET_SOURCE_FILES_PROPERTIES(libSMESH_swig_wrap.cpp PROPERTIES COMPILE_FLAGS "-DHAVE_CONFIG_H")
|
||||||
|
|
||||||
# --- scripts ---
|
# --- scripts ---
|
||||||
|
Loading…
Reference in New Issue
Block a user