SALOME documentation central

Transforming meshes (Translation, Rotation, Symmetry, Sewing, Merging)
[Modifying meshes]

Functions

def Mirror
 Creates a symmetrical copy of mesh elements.
def MirrorMakeMesh
 Creates a new mesh by a symmetrical copy of mesh elements.
def MirrorObject
 Creates a symmetrical copy of the object.
def MirrorObjectMakeMesh
 Creates a new mesh by a symmetrical copy of the object.
def Translate
 Translates the elements.
def TranslateMakeMesh
 Creates a new mesh of translated elements.
def TranslateObject
 Translates the object.
def TranslateObjectMakeMesh
 Creates a new mesh from the translated object.
def Rotate
 Rotates the elements.
def RotateMakeMesh
 Creates a new mesh of rotated elements.
def RotateObject
 Rotates the object.
def RotateObjectMakeMesh
 Creates a new mesh from the rotated object.
def FindCoincidentNodes
 Finds groups of ajacent nodes within Tolerance.
def FindCoincidentNodesOnPart
 Finds groups of ajacent nodes within Tolerance.
def MergeNodes
 Merges nodes.
def FindEqualElements
 Finds the elements built on the same nodes.
def MergeElements
 Merges elements in each given group.
def MergeEqualElements
 Leaves one element and removes all other elements built on the same nodes.
def SewFreeBorders
 Sews free borders.
def SewConformFreeBorders
 Sews conform free borders.
def SewBorderToSide
 Sews border to side.
def SewSideElements
 Sews two sides of a mesh.

Function Documentation

def Mirror (   self,
  IDsOfElements,
  Mirror,
  theMirrorType,
  Copy = 0,
  MakeGroups = False 
) [inherited]

Creates a symmetrical copy of mesh elements.

Parameters:
IDsOfElements list of elements ids
Mirror is AxisStruct or geom object(point, line, plane)
theMirrorType is POINT, AXIS or PLANE If the Mirror is a geom object this parameter is unnecessary
Copy allows to copy element (Copy is 1) or to replace with its mirroring (Copy is 0)
MakeGroups forces the generation of new groups from existing ones (if Copy)
Returns:
list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise
def MirrorMakeMesh (   self,
  IDsOfElements,
  Mirror,
  theMirrorType,
  MakeGroups = 0,
  NewMeshName = "" 
) [inherited]

Creates a new mesh by a symmetrical copy of mesh elements.

Parameters:
IDsOfElements the list of elements ids
Mirror is AxisStruct or geom object (point, line, plane)
theMirrorType is POINT, AXIS or PLANE If the Mirror is a geom object this parameter is unnecessary
MakeGroups to generate new groups from existing ones
NewMeshName a name of the new mesh to create
Returns:
instance of Mesh class
def MirrorObject (   self,
  theObject,
  Mirror,
  theMirrorType,
  Copy = 0,
  MakeGroups = False 
) [inherited]

Creates a symmetrical copy of the object.

Parameters:
theObject mesh, submesh or group
Mirror AxisStruct or geom object (point, line, plane)
theMirrorType is POINT, AXIS or PLANE If the Mirror is a geom object this parameter is unnecessary
Copy allows copying the element (Copy is 1) or replacing it with its mirror (Copy is 0)
MakeGroups forces the generation of new groups from existing ones (if Copy)
Returns:
list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise
def MirrorObjectMakeMesh (   self,
  theObject,
  Mirror,
  theMirrorType,
  MakeGroups = 0,
  NewMeshName = "" 
) [inherited]

Creates a new mesh by a symmetrical copy of the object.

Parameters:
theObject mesh, submesh or group
Mirror AxisStruct or geom object (point, line, plane)
theMirrorType POINT, AXIS or PLANE If the Mirror is a geom object this parameter is unnecessary
MakeGroups forces the generation of new groups from existing ones
NewMeshName the name of the new mesh to create
Returns:
instance of Mesh class
def Translate (   self,
  IDsOfElements,
  Vector,
  Copy,
  MakeGroups = False 
) [inherited]

Translates the elements.

Parameters:
IDsOfElements list of elements ids
Vector the direction of translation (DirStruct or vector)
Copy allows copying the translated elements
MakeGroups forces the generation of new groups from existing ones (if Copy)
Returns:
list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise
def TranslateMakeMesh (   self,
  IDsOfElements,
  Vector,
  MakeGroups = False,
  NewMeshName = "" 
) [inherited]

Creates a new mesh of translated elements.

Parameters:
IDsOfElements list of elements ids
Vector the direction of translation (DirStruct or vector)
MakeGroups forces the generation of new groups from existing ones
NewMeshName the name of the newly created mesh
Returns:
instance of Mesh class
def TranslateObject (   self,
  theObject,
  Vector,
  Copy,
  MakeGroups = False 
) [inherited]

Translates the object.

Parameters:
theObject the object to translate (mesh, submesh, or group)
Vector direction of translation (DirStruct or geom vector)
Copy allows copying the translated elements
MakeGroups forces the generation of new groups from existing ones (if Copy)
Returns:
list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise
def TranslateObjectMakeMesh (   self,
  theObject,
  Vector,
  MakeGroups = False,
  NewMeshName = "" 
) [inherited]

Creates a new mesh from the translated object.

Parameters:
theObject the object to translate (mesh, submesh, or group)
Vector the direction of translation (DirStruct or geom vector)
MakeGroups forces the generation of new groups from existing ones
NewMeshName the name of the newly created mesh
Returns:
instance of Mesh class
def Rotate (   self,
  IDsOfElements,
  Axis,
  AngleInRadians,
  Copy,
  MakeGroups = False 
) [inherited]

Rotates the elements.

Parameters:
IDsOfElements list of elements ids
Axis the axis of rotation (AxisStruct or geom line)
AngleInRadians the angle of rotation (in radians) or a name of variable which defines angle in degrees
Copy allows copying the rotated elements
MakeGroups forces the generation of new groups from existing ones (if Copy)
Returns:
list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise
def RotateMakeMesh (   self,
  IDsOfElements,
  Axis,
  AngleInRadians,
  MakeGroups = 0,
  NewMeshName = "" 
) [inherited]

Creates a new mesh of rotated elements.

Parameters:
IDsOfElements list of element ids
Axis the axis of rotation (AxisStruct or geom line)
AngleInRadians the angle of rotation (in radians) or a name of variable which defines angle in degrees
MakeGroups forces the generation of new groups from existing ones
NewMeshName the name of the newly created mesh
Returns:
instance of Mesh class
def RotateObject (   self,
  theObject,
  Axis,
  AngleInRadians,
  Copy,
  MakeGroups = False 
) [inherited]

Rotates the object.

Parameters:
theObject the object to rotate( mesh, submesh, or group)
Axis the axis of rotation (AxisStruct or geom line)
AngleInRadians the angle of rotation (in radians) or a name of variable which defines angle in degrees
Copy allows copying the rotated elements
MakeGroups forces the generation of new groups from existing ones (if Copy)
Returns:
list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise
def RotateObjectMakeMesh (   self,
  theObject,
  Axis,
  AngleInRadians,
  MakeGroups = 0,
  NewMeshName = "" 
) [inherited]

Creates a new mesh from the rotated object.

Parameters:
theObject the object to rotate (mesh, submesh, or group)
Axis the axis of rotation (AxisStruct or geom line)
AngleInRadians the angle of rotation (in radians) or a name of variable which defines angle in degrees
MakeGroups forces the generation of new groups from existing ones
NewMeshName the name of the newly created mesh
Returns:
instance of Mesh class
def FindCoincidentNodes (   self,
  Tolerance 
) [inherited]

Finds groups of ajacent nodes within Tolerance.

Parameters:
Tolerance the value of tolerance
Returns:
the list of groups of nodes
def FindCoincidentNodesOnPart (   self,
  SubMeshOrGroup,
  Tolerance 
) [inherited]

Finds groups of ajacent nodes within Tolerance.

Parameters:
Tolerance the value of tolerance
SubMeshOrGroup SubMesh or Group
Returns:
the list of groups of nodes
def MergeNodes (   self,
  GroupsOfNodes 
) [inherited]

Merges nodes.

Parameters:
GroupsOfNodes the list of groups of nodes
def FindEqualElements (   self,
  MeshOrSubMeshOrGroup 
) [inherited]

Finds the elements built on the same nodes.

Parameters:
MeshOrSubMeshOrGroup Mesh or SubMesh, or Group of elements for searching
Returns:
a list of groups of equal elements
def MergeElements (   self,
  GroupsOfElementsID 
) [inherited]

Merges elements in each given group.

Parameters:
GroupsOfElementsID groups of elements for merging
def MergeEqualElements (   self  )  [inherited]

Leaves one element and removes all other elements built on the same nodes.

def SewFreeBorders (   self,
  FirstNodeID1,
  SecondNodeID1,
  LastNodeID1,
  FirstNodeID2,
  SecondNodeID2,
  LastNodeID2,
  CreatePolygons,
  CreatePolyedrs 
) [inherited]

Sews free borders.

Returns:
SMESH.Sew_Error
def SewConformFreeBorders (   self,
  FirstNodeID1,
  SecondNodeID1,
  LastNodeID1,
  FirstNodeID2,
  SecondNodeID2 
) [inherited]

Sews conform free borders.

Returns:
SMESH.Sew_Error
def SewBorderToSide (   self,
  FirstNodeIDOnFreeBorder,
  SecondNodeIDOnFreeBorder,
  LastNodeIDOnFreeBorder,
  FirstNodeIDOnSide,
  LastNodeIDOnSide,
  CreatePolygons,
  CreatePolyedrs 
) [inherited]

Sews border to side.

Returns:
SMESH.Sew_Error
def SewSideElements (   self,
  IDsOfSide1Elements,
  IDsOfSide2Elements,
  NodeID1OfSide1ToMerge,
  NodeID1OfSide2ToMerge,
  NodeID2OfSide1ToMerge,
  NodeID2OfSide2ToMerge 
) [inherited]

Sews two sides of a mesh.

The nodes belonging to Side1 are merged with the nodes of elements of Side2. The number of elements in theSide1 and in theSide2 must be equal and they should have similar nodal connectivity. The nodes to merge should belong to side borders and the first node should be linked to the second.

Returns:
SMESH.Sew_Error
 All Data Structures Namespaces Files Functions Variables

Copyright © 2007-2008 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