Version: 6.3.1
Home
Data Structures | Functions | Variables

Package smesh

Data Structures

class  PointStructStr
class  PointStructStr6
class  AxisStructStr
class  DirStructStr
class  Mesh
 This class allows defining and managing a mesh. More...
class  Mesh_Algorithm
 The mother class to define algorithm, it is not recommended to use it directly. More...
class  Mesh_Segment
 Class to define a segment 1D algorithm for discretization. More...
class  Mesh_CompositeSegment
 Defines a segment 1D algorithm for discretization. More...
class  Mesh_Segment_Python
 Defines a segment 1D algorithm for discretization with python function. More...
class  Mesh_Triangle
 Defines a triangle 2D algorithm. More...
class  Mesh_Quadrangle
 Defines a quadrangle 2D algorithm. More...
class  Mesh_Tetrahedron
 Defines a tetrahedron 3D algorithm. More...
class  Mesh_Hexahedron
 Defines a hexahedron 3D algorithm. More...
class  Mesh_Netgen
 Defines a NETGEN-based 2D or 3D algorithm that needs no discrete boundary (i.e. More...
class  Mesh_Projection1D
 Defines a projection 1D algorithm. More...
class  Mesh_Projection2D
 Defines a projection 2D algorithm. More...
class  Mesh_Projection3D
 Defines a projection 3D algorithm. More...
class  Mesh_Prism3D
 Defines a 3D extrusion algorithm. More...
class  Mesh_RadialPrism3D
 Defines a Radial Prism 3D algorithm. More...
class  Mesh_RadialQuadrangle1D2D
 Defines a Radial Quadrangle 1D2D algorithm. More...
class  Mesh_UseExistingElements
 Defines a Radial Quadrangle 1D2D algorithm. More...
class  Mesh_UseExisting
class  LocalLength
class  LayerDistribution
class  SegmentLengthAroundVertex
class  Arithmetic1D
class  Deflection1D
class  StartEndLength
class  MaxElementArea
class  MaxElementVolume
class  NumberOfLayers
class  NumberOfSegments
class  NETGENPlugin_Hypothesis
class  NETGENPlugin_Hypothesis_2D
class  NETGEN_SimpleParameters_2D
class  NETGEN_SimpleParameters_3D
class  Pattern

Functions

def DegreesToRadians
 Converts an angle from degrees to radians.
def __init__
def __init__
def __init__
def ParsePointStruct
def ParseDirStruct
def ParseAxisStruct
def ParseAngles
 Return list of variable values from salome notebook.
def IsEqual
def GetName
 Gets object name.
def TreatHypoStatus
 Prints error message if a hypothesis was not assigned.
def CheckPlugin
 Check meshing plugin availability.
def AssureGeomPublished
 Private method.
def DumpPython
 Dump component to the Python script This method overrides IDL function to allow default values for the parameters.
def init_smesh
 Sets the current study and Geometry component.
def Mesh
 Creates an empty Mesh.
def EnumToLong
 Returns a long value from enumeration Should be used for SMESH.FunctorType enumeration.
def ColorToString
 Returns a string representation of the color.
def GetPointStruct
 Gets PointStruct from vertex.
def GetDirStruct
 Gets DirStruct from vector.
def MakeDirStruct
 Makes DirStruct from a triplet.
def GetAxisStruct
 Get AxisStruct from object.
def SetName
 Sets the given name to the object.
def SetEmbeddedMode
 Sets the current mode.
def IsEmbeddedMode
 Gets the current mode.
def SetCurrentStudy
 Sets the current study.
def GetCurrentStudy
 Gets the current study.
def CreateMeshesFromUNV
 Creates a Mesh object importing data from the given UNV file.
def CreateMeshesFromMED
 Creates a Mesh object(s) importing data from the given MED file.
def CreateMeshesFromSTL
 Creates a Mesh object importing data from the given STL file.
def Concatenate
 Concatenate the given meshes into one mesh.
def CopyMesh
 Create a mesh by copying a part of another mesh.
def GetSubShapesId
 From SMESH_Gen interface.
def GetPattern
 From SMESH_Gen interface.
def SetBoundaryBoxSegmentation
 Sets number of segments per diagonal of boundary box of geometry by which default segment length of appropriate 1D hypotheses is defined.
def GetEmptyCriterion
 Creates an empty criterion.
def GetCriterion
 Creates a criterion by the given parameters
Criterion structures allow to define complex filters by combining them with logical operations (AND / OR) (see example below)
def GetFilter
 Creates a filter with the given parameters.
def GetFunctor
 Creates a numerical functor by its type.
def CreateHypothesis
 Creates hypothesis.
def GetMeshInfo
 Gets the mesh stattistic.
def MinDistance
 Get minimum distance between two objects.
def GetMinDistance
 Get measure structure specifying minimum distance data between two objects.
def BoundingBox
 Get bounding box of the specified object(s)
def GetBoundingBox
 Get measure structure specifying bounding box data of the specified object(s)
def ParseParameters
 Return values of the notebook variables.

Variables

int noNETGENPlugin = 0
int noGHS3DPlugin = 0
int noGHS3DPRLPlugin = 0
int noHexoticPlugin = 0
int noBLSURFPlugin = 0
int REGULAR = 1
int PYTHON = 2
int COMPOSITE = 3
int SOLE = 0
int SIMPLE = 1
int MEFISTO = 3
int NETGEN = 4
int GHS3D = 5
int FULL_NETGEN = 6
int NETGEN_2D = 7
 NETGEN_1D2D = NETGEN
 NETGEN_1D2D3D = FULL_NETGEN
 NETGEN_FULL = FULL_NETGEN
int Hexa = 8
int Hexotic = 9
int BLSURF = 10
int GHS3DPRL = 11
int QUADRANGLE = 0
int RADIAL_QUAD = 1
 POINT = SMESH_MeshEditor.POINT
 AXIS = SMESH_MeshEditor.AXIS
 PLANE = SMESH_MeshEditor.PLANE
 LAPLACIAN_SMOOTH = SMESH_MeshEditor.LAPLACIAN_SMOOTH
 CENTROIDAL_SMOOTH = SMESH_MeshEditor.CENTROIDAL_SMOOTH
int VeryCoarse = 0
int Coarse = 1
int Moderate = 2
int Fine = 3
int VeryFine = 4
int Custom = 5
int PrecisionConfusion = 1
string var_separator = ":"
string NO_NAME = "NoName"
tuple studyID = mesh.smeshpyD.GetCurrentStudy()
 set the study
tuple name = mesh.geompyD.SubShapeName(geom, mesh.geom)
 get a name
 notebook = salome_notebook.notebook
 xStr
 yStr
 zStr
 x
 y
 z
 x1Str
 x2Str
 y1Str
 y2Str
 z1Str
 z2Str
 x1
 x2
 y1
 y2
 z1
 z2
 dxStr
 dyStr
 dzStr
 dx
 dy
 dz
 pointStruct
 geompyD

Function Documentation

def smesh.DumpPython (   self,
  theStudy,
  theIsPublished = True,
  theIsMultiFile = True 
)

Dump component to the Python script This method overrides IDL function to allow default values for the parameters.

def smesh.Concatenate (   self,
  meshes,
  uniteIdenticalGroups,
  mergeNodesAndElements = False,
  mergeTolerance = 1e-5,
  allGroups = False 
)

Concatenate the given meshes into one mesh.

Returns:
an instance of Mesh class
Parameters:
meshesthe meshes to combine into one mesh
uniteIdenticalGroupsif true, groups with same names are united, else they are renamed
mergeNodesAndElementsif true, equal nodes and elements aremerged
mergeTolerancetolerance for merging nodes
allGroupsforces creation of groups of all elements
def smesh.CopyMesh (   self,
  meshPart,
  meshName,
  toCopyGroups = False,
  toKeepIDs = False 
)

Create a mesh by copying a part of another mesh.

Parameters:
meshParta part of mesh to copy, either a Mesh, a sub-mesh or a group; to copy nodes or elements not contained in any mesh object, pass result of Mesh.GetIDSource( list_of_ids, type ) as meshPart
meshNamea name of the new mesh
toCopyGroupsto create in the new mesh groups the copied elements belongs to
toKeepIDsto preserve IDs of the copied elements or not
Returns:
an instance of Mesh class
def smesh.CreateHypothesis (   self,
  theHType,
  theLibName = "libStdMeshersEngine.so" 
)

Creates hypothesis.

Parameters:
theHTypemesh hypothesis type (string)
theLibNamemesh plug-in library name
Returns:
created hypothesis instance
def smesh.ParseParameters (   last,
  nbParams,
  nbParam,
  value 
)

Return values of the notebook variables.


Variable Documentation

int noNETGENPlugin = 0
int noGHS3DPlugin = 0
int noHexoticPlugin = 0
int noBLSURFPlugin = 0
notebook = salome_notebook.notebook
x
y
z
x1
x2
y1
y2
z1
z2
dx
dy
dz
 All Data Structures Namespaces Files Functions Variables
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS