Version: 6.3.1
Public Member Functions | Data Fields

smeshDC.smeshDC Class Reference

Inheritance diagram for smeshDC.smeshDC:
Inheritance graph
[legend]

Public Member Functions

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)

Data Fields

 geompyD

Detailed Description

Definition at line 516 of file smeshDC.py.


Member Function Documentation

def smeshDC.smeshDC.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

Definition at line 695 of file smeshDC.py.

00697                                                                                              :
00698         mergeTolerance,Parameters = geompyDC.ParseParameters(mergeTolerance)
00699         for i,m in enumerate(meshes):
00700             if isinstance(m, Mesh):
00701                 meshes[i] = m.GetMesh()
00702         if allGroups:
00703             aSmeshMesh = SMESH._objref_SMESH_Gen.ConcatenateWithGroups(
00704                 self,meshes,uniteIdenticalGroups,mergeNodesAndElements,mergeTolerance)
00705         else:
00706             aSmeshMesh = SMESH._objref_SMESH_Gen.Concatenate(
00707                 self,meshes,uniteIdenticalGroups,mergeNodesAndElements,mergeTolerance)
00708         aSmeshMesh.SetParameters(Parameters)
00709         aMesh = Mesh(self, self.geompyD, aSmeshMesh)
00710         return aMesh

def smeshDC.smeshDC.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

Definition at line 719 of file smeshDC.py.

00720                                                                                 :
00721         if (isinstance( meshPart, Mesh )):
00722             meshPart = meshPart.GetMesh()
00723         mesh = SMESH._objref_SMESH_Gen.CopyMesh( self,meshPart,meshName,toCopyGroups,toKeepIDs )
00724         return Mesh(self, self.geompyD, mesh)

def smeshDC.smeshDC.CreateHypothesis (   self,
  theHType,
  theLibName = "libStdMeshersEngine.so" 
)

Creates hypothesis.

Parameters:
theHTypemesh hypothesis type (string)
theLibNamemesh plug-in library name
Returns:
created hypothesis instance

Definition at line 959 of file smeshDC.py.

00960                                                                              :
00961         return SMESH._objref_SMESH_Gen.CreateHypothesis(self, theHType, theLibName )

def smeshDC.smeshDC.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.

Definition at line 520 of file smeshDC.py.

00521                                                                             :
00522         return SMESH._objref_SMESH_Gen.DumpPython(self, theStudy, theIsPublished, theIsMultiFile)


Field Documentation

Definition at line 645 of file smeshDC.py.

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