Back to index

salome-smesh  6.5.0
Public Member Functions | Private Attributes | Static Private Attributes
smeshpy.smeshpy Class Reference

List of all members.

Public Member Functions

def __init__
def CreateMesh
def CreateHypothesis
def Compute

Private Attributes

 _study

Static Private Attributes

 _geom = None
 _smesh = None
 _studyId = None

Detailed Description

Definition at line 35 of file smeshpy.py.


Constructor & Destructor Documentation

def smeshpy.smeshpy.__init__ (   self)

Definition at line 42 of file smeshpy.py.

00042 
00043     def __init__(self):
00044         try:
00045             self._geom = salome.lcc.FindOrLoadComponent("FactoryServer","GEOM")
00046             self._smesh = salome.lcc.FindOrLoadComponent("FactoryServer","SMESH")
00047         except:
00048             MESSAGE( "exception in smeshpy:__init__" )
00049         self._study = salome.myStudy
00050         self._smesh.SetCurrentStudy(self._study)


Member Function Documentation

def smeshpy.smeshpy.Compute (   self,
  mesh,
  shapeId 
)

Definition at line 74 of file smeshpy.py.

00074 
00075     def Compute(self, mesh, shapeId):
00076         try:
00077             shape = salome.IDToObject(shapeId)
00078             ret=self._smesh.Compute(mesh, shape)
00079             return ret
00080         except:
00081             MESSAGE( "exception in smeshpy:Compute" )
00082             return 0    
00083 
#=============================================================================

Here is the caller graph for this function:

def smeshpy.smeshpy.CreateHypothesis (   self,
  name,
  libname 
)

Definition at line 64 of file smeshpy.py.

00064 
00065     def CreateHypothesis(self, name, libname):
00066         try:
00067             hyp = self._smesh.CreateHypothesis(name, libname)
00068             return hyp
00069         except:
00070             MESSAGE( "exception in smeshpy:CreateHypothesis" )
00071             return None    

def smeshpy.smeshpy.CreateMesh (   self,
  shapeId 
)

Definition at line 53 of file smeshpy.py.

00053 
00054     def CreateMesh(self, shapeId):
00055         try:
00056             shape = salome.IDToObject(shapeId)
00057             aMesh = self._smesh.CreateMesh(shape)
00058             return aMesh
00059         except:
00060             MESSAGE( "exception in smeshpy:Init" )
00061             return None


Member Data Documentation

smeshpy.smeshpy._geom = None [static, private]

Definition at line 36 of file smeshpy.py.

smeshpy.smeshpy._smesh = None [static, private]

Definition at line 37 of file smeshpy.py.

Definition at line 48 of file smeshpy.py.

smeshpy.smeshpy._studyId = None [static, private]

Definition at line 38 of file smeshpy.py.


The documentation for this class was generated from the following file: