NPAL17920: error in init_smesh routine in smeshDC.py file.

This commit is contained in:
jfa 2007-11-30 08:24:29 +00:00
parent 92cba8e476
commit fc387c8013

View File

@ -136,9 +136,9 @@ def TreatHypoStatus(status, hypName, geomName, isAlgo):
class smeshDC(SMESH._objref_SMESH_Gen):
def init_smesh(self,theStudy,geompyD):
self.SetCurrentStudy(theStudy)
self.geompyD=geompyD
self.SetGeomEngine(geompyD)
self.SetCurrentStudy(theStudy)
def Mesh(self, obj=0, name=0):
return Mesh(self,self.geompyD,obj,name)
@ -327,7 +327,7 @@ class smeshDC(SMESH._objref_SMESH_Gen):
print "Error: Treshold should be a string."
return None
elif CritType in [FT_FreeBorders, FT_FreeEdges, FT_BadOrientedVolume]:
# Here we don't need treshold
# Here we do not need treshold
if aTreshold == FT_LogicalNOT:
aCriterion.UnaryOp = self.EnumToLong(FT_LogicalNOT)
elif aTreshold in [FT_LogicalAND, FT_LogicalOR]:
@ -412,7 +412,7 @@ import omniORB
omniORB.registerObjref(SMESH._objref_SMESH_Gen._NP_RepositoryId, smeshDC)
## Mother class to define algorithm, recommended to don't use directly.
## Mother class to define algorithm, recommended to do not use directly.
#
# More details.
class Mesh_Algorithm:
@ -527,7 +527,7 @@ class Mesh_Algorithm:
# More details.
class Mesh_Segment(Mesh_Algorithm):
algo = 0 # algorithm object common for all Mesh_Segment's
algo = 0 # algorithm object common for all Mesh_Segments
## Private constructor.
def __init__(self, mesh, geom=0):
@ -646,7 +646,7 @@ class Mesh_Segment(Mesh_Algorithm):
# More details.
class Mesh_CompositeSegment(Mesh_Segment):
algo = 0 # algorithm object common for all Mesh_CompositeSegment's
algo = 0 # algorithm object common for all Mesh_CompositeSegments
## Private constructor.
def __init__(self, mesh, geom=0):
@ -665,7 +665,7 @@ class Mesh_CompositeSegment(Mesh_Segment):
# More details.
class Mesh_Segment_Python(Mesh_Segment):
algo = 0 # algorithm object common for all Mesh_Segment_Python's
algo = 0 # algorithm object common for all Mesh_Segment_Pythons
## Private constructor.
def __init__(self, mesh, geom=0):
@ -877,7 +877,7 @@ class Mesh_Triangle(Mesh_Algorithm):
# More details.
class Mesh_Quadrangle(Mesh_Algorithm):
algo = 0 # algorithm object common for all Mesh_Quadrangle's
algo = 0 # algorithm object common for all Mesh_Quadrangles
## Private constructor.
def __init__(self, mesh, geom=0):
@ -907,9 +907,9 @@ class Mesh_Tetrahedron(Mesh_Algorithm):
params = 0
algoType = 0
algoNET = 0 # algorithm object common for all Mesh_Tetrahedron's
algoGHS = 0 # algorithm object common for all Mesh_Tetrahedron's
algoFNET = 0 # algorithm object common for all Mesh_Tetrahedron's
algoNET = 0 # algorithm object common for all Mesh_Tetrahedrons
algoGHS = 0 # algorithm object common for all Mesh_Tetrahedrons
algoFNET = 0 # algorithm object common for all Mesh_Tetrahedrons
## Private constructor.
def __init__(self, mesh, algoType, geom=0):
@ -1015,7 +1015,7 @@ class Mesh_Tetrahedron(Mesh_Algorithm):
# More details.
class Mesh_Hexahedron(Mesh_Algorithm):
algo = 0 # algorithm object common for all Mesh_Hexahedron's
algo = 0 # algorithm object common for all Mesh_Hexahedrons
## Private constructor.
def __init__(self, mesh, geom=0):
@ -1041,8 +1041,8 @@ class Mesh_Netgen(Mesh_Algorithm):
is3D = 0
algoNET23 = 0 # algorithm object common for all Mesh_Netgen's
algoNET2 = 0 # algorithm object common for all Mesh_Netgen's
algoNET23 = 0 # algorithm object common for all Mesh_Netgens
algoNET2 = 0 # algorithm object common for all Mesh_Netgens
## Private constructor.
def __init__(self, mesh, is3D, geom=0):
@ -1086,7 +1086,7 @@ class Mesh_Netgen(Mesh_Algorithm):
# More details.
class Mesh_Projection1D(Mesh_Algorithm):
algo = 0 # algorithm object common for all Mesh_Projection1D's
algo = 0 # algorithm object common for all Mesh_Projection1Ds
## Private constructor.
def __init__(self, mesh, geom=0):
@ -1126,7 +1126,7 @@ class Mesh_Projection1D(Mesh_Algorithm):
# More details.
class Mesh_Projection2D(Mesh_Algorithm):
algo = 0 # algorithm object common for all Mesh_Projection2D's
algo = 0 # algorithm object common for all Mesh_Projection2Ds
## Private constructor.
def __init__(self, mesh, geom=0):
@ -1172,7 +1172,7 @@ class Mesh_Projection2D(Mesh_Algorithm):
# More details.
class Mesh_Projection3D(Mesh_Algorithm):
algo = 0 # algorithm object common for all Mesh_Projection3D's
algo = 0 # algorithm object common for all Mesh_Projection3Ds
## Private constructor.
def __init__(self, mesh, geom=0):
@ -1220,7 +1220,7 @@ class Mesh_Projection3D(Mesh_Algorithm):
# More details.
class Mesh_Prism3D(Mesh_Algorithm):
algo = 0 # algorithm object common for all Mesh_Prism3D's
algo = 0 # algorithm object common for all Mesh_Prism3Ds
## Private constructor.
def __init__(self, mesh, geom=0):
@ -1240,7 +1240,7 @@ class Mesh_Prism3D(Mesh_Algorithm):
# More details.
class Mesh_RadialPrism3D(Mesh_Algorithm):
algo = 0 # algorithm object common for all Mesh_RadialPrism3D's
algo = 0 # algorithm object common for all Mesh_RadialPrism3Ds
## Private constructor.
def __init__(self, mesh, geom=0):
@ -3024,13 +3024,13 @@ class Mesh:
return self.editor.ChangeElemNodes(ide, newIDs)
## If during last operation of MeshEditor some nodes were
# created this method returns list of it's IDs, \n
# created this method returns list of its IDs, \n
# if new nodes not created - returns empty list
def GetLastCreatedNodes(self):
return self.editor.GetLastCreatedNodes()
## If during last operation of MeshEditor some elements were
# created this method returns list of it's IDs, \n
# created this method returns list of its IDs, \n
# if new elements not creared - returns empty list
def GetLastCreatedElems(self):
return self.editor.GetLastCreatedElems()