mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-25 04: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)
|
||||
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.SetValue("Algorithms")
|
||||
aSelAttr = myStudyBuilder.FindOrCreateAttribute(AlgorithmsRoot, "AttributeSelectable")
|
||||
@ -156,7 +156,7 @@ def AddNewAlgorithms(IOR):
|
||||
# Add New Algorithms
|
||||
newHypo = myStudyBuilder.NewObject(AlgorithmsRoot)
|
||||
aPixmap = myStudyBuilder.FindOrCreateAttribute(newHypo, "AttributePixMap")
|
||||
aPixmap = anAttr._narrow(SALOMEDS.AttributePixMap)
|
||||
aPixmap = aPixmap._narrow(SALOMEDS.AttributePixMap)
|
||||
H = orb.string_to_object(IOR)
|
||||
aType = H.GetName(); #QString in fact
|
||||
aPixmap.SetPixMap( "mesh_tree_algo.png_" + aType )
|
||||
|
@ -76,7 +76,6 @@ algo3d.SetMEDName(results)
|
||||
algo3d.SetNbPart(4)
|
||||
algo3d.SetBackground(False)
|
||||
algo3d.SetKeepFiles(False)
|
||||
algo3d.SetToMeshHoles(True)
|
||||
|
||||
# Launch meshers
|
||||
# --------------
|
||||
|
@ -84,7 +84,7 @@ SET_DIRECTORY_PROPERTIES(PROPERTIES INCLUDE_DIRECTORIES "${_cmake_include_direct
|
||||
|
||||
# swig flags
|
||||
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")
|
||||
|
||||
# --- scripts ---
|
||||
|
Loading…
Reference in New Issue
Block a user