Version: 8.3.0
Home
 All Data Structures Namespaces Files Functions Variables Groups
smeshBuilder Namespace Reference

Python API for SALOME Mesh module. More...

Data Structures

class  MeshMeta
 Private class used to workaround a problem that sometimes isinstance(m, Mesh) returns False. More...
 
class  smeshBuilder
 This class allows to create, load or manipulate meshes. More...
 
class  Mesh
 This class allows defining and managing a mesh. More...
 
class  meshProxy
 Private class used to compensate change of CORBA API of SMESH_Mesh for backward compatibility with old dump scripts which call SMESH_Mesh directly and not via smeshBuilder.Mesh. More...
 
class  submeshProxy
 Private class wrapping SMESH.SMESH_SubMesh in order to add Compute() More...
 
class  meshEditor
 Private class used to compensate change of CORBA API of SMESH_MeshEditor for backward compatibility with old dump scripts which call SMESH_MeshEditor directly and not via smeshBuilder.Mesh. More...
 
class  Pattern
 Private class wrapping SMESH.SMESH_Pattern CORBA class in order to treat Notebook variables in some methods. More...
 
class  algoCreator
 Private class used to bind methods creating algorithms to the class Mesh. More...
 
class  hypMethodWrapper
 Private class used to substitute and store variable parameters of hypotheses. More...
 
class  genObjUnRegister
 A helper class that calls UnRegister() of SALOME.GenericObj'es stored in it. More...
 

Functions

def DegreesToRadians
 Convert an angle from degrees to radians. More...
 
def ParseParameters
 Return list of variable values from salome notebook. More...
 
def ParseAngles
 Parse parameters while converting variables to radians. More...
 
def __initPointStruct
 Substitute PointStruct.__init__() to create SMESH.PointStruct using notebook variables. More...
 
def __initAxisStruct
 Substitute AxisStruct.__init__() to create SMESH.AxisStruct using notebook variables. More...
 
def IsEqual
 Compare real values using smeshPrecisionConfusion as tolerance. More...
 
def GetName
 Return object name. More...
 
def TreatHypoStatus
 Print error message if a hypothesis was not assigned. More...
 
def AssureGeomPublished
 Private method. More...
 
def FirstVertexOnCurve
 Return the first vertex of a geometrical edge by ignoring orientation. More...
 
def New
 Create a new smeshBuilder instance.The smeshBuilder class provides the Python interface to create or load meshes. More...
 

Variables

 notebook = salome_notebook.notebook
 
string var_separator = ":"
 
int smeshPrecisionConfusion = 1
 
string NO_NAME = "NoName"
 
 smeshInst = None
 
 engine = None
 
 doLcc = False
 
 created = False
 
string pluginBuilderName = pluginName+"Builder"
 Bind methods creating mesher plug-ins to the Mesh class. More...
 
tuple plugin = eval( pluginBuilderName )
 
tuple algo = getattr( plugin, k )
 

Detailed Description

Python API for SALOME Mesh module.

Function Documentation

def smeshBuilder.New (   study,
  instance = None 
)

Create a new smeshBuilder instance.The smeshBuilder class provides the Python interface to create or load meshes.

Typical use is:

1 import salome
2 salome.salome_init()
3 from salome.smesh import smeshBuilder
4 smesh = smeshBuilder.New(salome.myStudy)
Parameters
studySALOME study, generally obtained by salome.myStudy.
instanceCORBA proxy of SMESH Engine. If None, the default Engine is used.
Returns
smeshBuilder instance

Variable Documentation

smeshInst = None
engine = None
doLcc = False
created = False
string pluginBuilderName = pluginName+"Builder"

Bind methods creating mesher plug-ins to the Mesh class.

tuple plugin = eval( pluginBuilderName )
tuple algo = getattr( plugin, k )