mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-27 09:50:34 +05:00
[PY3] Swig additional fixes
This commit is contained in:
parent
0b9cd952a3
commit
3a4c128626
@ -554,7 +554,7 @@ engine = None
|
||||
doLcc = False
|
||||
created = False
|
||||
|
||||
class geomBuilder(object, GEOM._objref_GEOM_Gen):
|
||||
class geomBuilder(GEOM._objref_GEOM_Gen):
|
||||
|
||||
## Enumeration ShapeType as a dictionary. \n
|
||||
## Topological types of shapes (like Open Cascade types). See GEOM::shape_type for details.
|
||||
@ -605,7 +605,7 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
|
||||
# @ingroup l1_geomBuilder_auxiliary
|
||||
kind = GEOM.GEOM_IKindOfShape
|
||||
|
||||
def __new__(cls):
|
||||
def __new__(cls, *args):
|
||||
global engine
|
||||
global geom
|
||||
global doLcc
|
||||
@ -644,12 +644,12 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
|
||||
#print "return geom 2 ", geom
|
||||
return geom
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, *args):
|
||||
global created
|
||||
#print "-------- geomBuilder __init__ --- ", created, self
|
||||
if not created:
|
||||
created = True
|
||||
GEOM._objref_GEOM_Gen.__init__(self)
|
||||
GEOM._objref_GEOM_Gen.__init__(self, *args)
|
||||
self.myMaxNbSubShapesAllowed = 0 # auto-publishing is disabled by default
|
||||
self.myBuilder = None
|
||||
self.myStudyId = 0
|
||||
|
@ -42,7 +42,7 @@ INCLUDE_DIRECTORIES(
|
||||
|
||||
# swig flags
|
||||
SET_SOURCE_FILES_PROPERTIES(libGEOM_Swig.i PROPERTIES CPLUSPLUS ON)
|
||||
SET_SOURCE_FILES_PROPERTIES(libGEOM_Swig.i PROPERTIES SWIG_DEFINITIONS "-shadow")
|
||||
SET_SOURCE_FILES_PROPERTIES(libGEOM_Swig.i PROPERTIES SWIG_FLAGS "-py3")
|
||||
SET_SOURCE_FILES_PROPERTIES(libGEOM_SwigPYTHON_wrap.cxx PROPERTIES COMPILE_FLAGS "-DHAVE_CONFIG_H")
|
||||
|
||||
# additional preprocessor / compiler flags
|
||||
|
@ -52,7 +52,7 @@ SET(_swig_SCRIPTS
|
||||
|
||||
# swig flags
|
||||
SET_SOURCE_FILES_PROPERTIES(xao.i PROPERTIES CPLUSPLUS ON)
|
||||
SET_SOURCE_FILES_PROPERTIES(xao.i PROPERTIES SWIG_DEFINITIONS "-shadow")
|
||||
SET_SOURCE_FILES_PROPERTIES(xao.i PROPERTIES SWIG_FLAGS "-py3")
|
||||
#SET_SOURCE_FILES_PROPERTIES(xao_wrap.cxx PROPERTIES COMPILE_FLAGS "-DHAVE_CONFIG_H")
|
||||
|
||||
# --- rules ---
|
||||
|
Loading…
Reference in New Issue
Block a user