SALOME documentation central

Extrusion and Revolution
[Modifying meshes]

Functions

def RotationSweep
 Generates new elements by rotation of the elements around the axis.
def RotationSweepObject
 Generates new elements by rotation of the elements of object around the axis.
def RotationSweepObject1D
 Generates new elements by rotation of the elements of object around the axis.
def RotationSweepObject2D
 Generates new elements by rotation of the elements of object around the axis.
def ExtrusionSweep
 Generates new elements by extrusion of the elements with given ids.
def AdvancedExtrusion
 Generates new elements by extrusion of the elements with given ids.
def ExtrusionSweepObject
 Generates new elements by extrusion of the elements which belong to the object.
def ExtrusionSweepObject1D
 Generates new elements by extrusion of the elements which belong to the object.
def ExtrusionSweepObject2D
 Generates new elements by extrusion of the elements which belong to the object.
def ExtrusionAlongPathX
 Generates new elements by extrusion of the given elements The path of extrusion must be a meshed edge.
def ExtrusionAlongPath
 Generates new elements by extrusion of the given elements The path of extrusion must be a meshed edge.
def ExtrusionAlongPathObject
 Generates new elements by extrusion of the elements which belong to the object The path of extrusion must be a meshed edge.
def ExtrusionAlongPathObject1D
 Generates new elements by extrusion of the elements which belong to the object The path of extrusion must be a meshed edge.
def ExtrusionAlongPathObject2D
 Generates new elements by extrusion of the elements which belong to the object The path of extrusion must be a meshed edge.

Function Documentation

def RotationSweep (   self,
  IDsOfElements,
  Axis,
  AngleInRadians,
  NbOfSteps,
  Tolerance,
  MakeGroups = False,
  TotalAngle = False 
) [inherited]

Generates new elements by rotation of the elements around the axis.

Parameters:
IDsOfElements the list of ids of elements to sweep
Axis the axis of rotation, AxisStruct or line(geom object)
AngleInRadians the angle of Rotation (in radians) or a name of variable which defines angle in degrees
NbOfSteps the number of steps
Tolerance tolerance
MakeGroups forces the generation of new groups from existing ones
TotalAngle gives meaning of AngleInRadians: if True then it is an angular size of all steps, else - size of each step
Returns:
the list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise
def RotationSweepObject (   self,
  theObject,
  Axis,
  AngleInRadians,
  NbOfSteps,
  Tolerance,
  MakeGroups = False,
  TotalAngle = False 
) [inherited]

Generates new elements by rotation of the elements of object around the axis.

Parameters:
theObject object which elements should be sweeped
Axis the axis of rotation, AxisStruct or line(geom object)
AngleInRadians the angle of Rotation
NbOfSteps number of steps
Tolerance tolerance
MakeGroups forces the generation of new groups from existing ones
TotalAngle gives meaning of AngleInRadians: if True then it is an angular size of all steps, else - size of each step
Returns:
the list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise
def RotationSweepObject1D (   self,
  theObject,
  Axis,
  AngleInRadians,
  NbOfSteps,
  Tolerance,
  MakeGroups = False,
  TotalAngle = False 
) [inherited]

Generates new elements by rotation of the elements of object around the axis.

Parameters:
theObject object which elements should be sweeped
Axis the axis of rotation, AxisStruct or line(geom object)
AngleInRadians the angle of Rotation
NbOfSteps number of steps
Tolerance tolerance
MakeGroups forces the generation of new groups from existing ones
TotalAngle gives meaning of AngleInRadians: if True then it is an angular size of all steps, else - size of each step
Returns:
the list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise
def RotationSweepObject2D (   self,
  theObject,
  Axis,
  AngleInRadians,
  NbOfSteps,
  Tolerance,
  MakeGroups = False,
  TotalAngle = False 
) [inherited]

Generates new elements by rotation of the elements of object around the axis.

Parameters:
theObject object which elements should be sweeped
Axis the axis of rotation, AxisStruct or line(geom object)
AngleInRadians the angle of Rotation
NbOfSteps number of steps
Tolerance tolerance
MakeGroups forces the generation of new groups from existing ones
TotalAngle gives meaning of AngleInRadians: if True then it is an angular size of all steps, else - size of each step
Returns:
the list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise
def ExtrusionSweep (   self,
  IDsOfElements,
  StepVector,
  NbOfSteps,
  MakeGroups = False 
) [inherited]

Generates new elements by extrusion of the elements with given ids.

Parameters:
IDsOfElements the list of elements ids for extrusion
StepVector vector, defining the direction and value of extrusion
NbOfSteps the number of steps
MakeGroups forces the generation of new groups from existing ones
Returns:
the list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise
def AdvancedExtrusion (   self,
  IDsOfElements,
  StepVector,
  NbOfSteps,
  ExtrFlags,
  SewTolerance,
  MakeGroups = False 
) [inherited]

Generates new elements by extrusion of the elements with given ids.

Parameters:
IDsOfElements is ids of elements
StepVector vector, defining the direction and value of extrusion
NbOfSteps the number of steps
ExtrFlags sets flags for extrusion
SewTolerance uses for comparing locations of nodes if flag EXTRUSION_FLAG_SEW is set
MakeGroups forces the generation of new groups from existing ones
Returns:
list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise
def ExtrusionSweepObject (   self,
  theObject,
  StepVector,
  NbOfSteps,
  MakeGroups = False 
) [inherited]

Generates new elements by extrusion of the elements which belong to the object.

Parameters:
theObject the object which elements should be processed
StepVector vector, defining the direction and value of extrusion
NbOfSteps the number of steps
MakeGroups forces the generation of new groups from existing ones
Returns:
list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise
def ExtrusionSweepObject1D (   self,
  theObject,
  StepVector,
  NbOfSteps,
  MakeGroups = False 
) [inherited]

Generates new elements by extrusion of the elements which belong to the object.

Parameters:
theObject object which elements should be processed
StepVector vector, defining the direction and value of extrusion
NbOfSteps the number of steps
MakeGroups to generate new groups from existing ones
Returns:
list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise
def ExtrusionSweepObject2D (   self,
  theObject,
  StepVector,
  NbOfSteps,
  MakeGroups = False 
) [inherited]

Generates new elements by extrusion of the elements which belong to the object.

Parameters:
theObject object which elements should be processed
StepVector vector, defining the direction and value of extrusion
NbOfSteps the number of steps
MakeGroups forces the generation of new groups from existing ones
Returns:
list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise
def ExtrusionAlongPathX (   self,
  Base,
  Path,
  NodeStart,
  HasAngles,
  Angles,
  LinearVariation,
  HasRefPoint,
  RefPoint,
  MakeGroups,
  ElemType 
) [inherited]

Generates new elements by extrusion of the given elements The path of extrusion must be a meshed edge.

Parameters:
Base mesh or list of ids of elements for extrusion
Path - 1D mesh or 1D sub-mesh, along which proceeds the extrusion
NodeStart the start node from Path. Defines the direction of extrusion
HasAngles allows the shape to be rotated around the path to get the resulting mesh in a helical fashion
Angles list of angles in radians
LinearVariation forces the computation of rotation angles as linear variation of the given Angles along path steps
HasRefPoint allows using the reference point
RefPoint the point around which the shape is rotated (the mass center of the shape by default). The User can specify any point as the Reference Point.
MakeGroups forces the generation of new groups from existing ones
ElemType type of elements for extrusion (if param Base is a mesh)
Returns:
list of created groups (SMESH_GroupBase) and SMESH.Extrusion_Error if MakeGroups=True, only SMESH.Extrusion_Error otherwise
def ExtrusionAlongPath (   self,
  IDsOfElements,
  PathMesh,
  PathShape,
  NodeStart,
  HasAngles,
  Angles,
  HasRefPoint,
  RefPoint,
  MakeGroups = False,
  LinearVariation = False 
) [inherited]

Generates new elements by extrusion of the given elements The path of extrusion must be a meshed edge.

Parameters:
IDsOfElements ids of elements
PathMesh mesh containing a 1D sub-mesh on the edge, along which proceeds the extrusion
PathShape shape(edge) defines the sub-mesh for the path
NodeStart the first or the last node on the edge. Defines the direction of extrusion
HasAngles allows the shape to be rotated around the path to get the resulting mesh in a helical fashion
Angles list of angles in radians
HasRefPoint allows using the reference point
RefPoint the point around which the shape is rotated (the mass center of the shape by default). The User can specify any point as the Reference Point.
MakeGroups forces the generation of new groups from existing ones
LinearVariation forces the computation of rotation angles as linear variation of the given Angles along path steps
Returns:
list of created groups (SMESH_GroupBase) and SMESH.Extrusion_Error if MakeGroups=True, only SMESH.Extrusion_Error otherwise
def ExtrusionAlongPathObject (   self,
  theObject,
  PathMesh,
  PathShape,
  NodeStart,
  HasAngles,
  Angles,
  HasRefPoint,
  RefPoint,
  MakeGroups = False,
  LinearVariation = False 
) [inherited]

Generates new elements by extrusion of the elements which belong to the object The path of extrusion must be a meshed edge.

Parameters:
theObject the object which elements should be processed
PathMesh mesh containing a 1D sub-mesh on the edge, along which the extrusion proceeds
PathShape shape(edge) defines the sub-mesh for the path
NodeStart the first or the last node on the edge. Defines the direction of extrusion
HasAngles allows the shape to be rotated around the path to get the resulting mesh in a helical fashion
Angles list of angles
HasRefPoint allows using the reference point
RefPoint the point around which the shape is rotated (the mass center of the shape by default). The User can specify any point as the Reference Point.
MakeGroups forces the generation of new groups from existing ones
LinearVariation forces the computation of rotation angles as linear variation of the given Angles along path steps
Returns:
list of created groups (SMESH_GroupBase) and SMESH.Extrusion_Error if MakeGroups=True, only SMESH.Extrusion_Error otherwise
def ExtrusionAlongPathObject1D (   self,
  theObject,
  PathMesh,
  PathShape,
  NodeStart,
  HasAngles,
  Angles,
  HasRefPoint,
  RefPoint,
  MakeGroups = False,
  LinearVariation = False 
) [inherited]

Generates new elements by extrusion of the elements which belong to the object The path of extrusion must be a meshed edge.

Parameters:
theObject the object which elements should be processed
PathMesh mesh containing a 1D sub-mesh on the edge, along which the extrusion proceeds
PathShape shape(edge) defines the sub-mesh for the path
NodeStart the first or the last node on the edge. Defines the direction of extrusion
HasAngles allows the shape to be rotated around the path to get the resulting mesh in a helical fashion
Angles list of angles
HasRefPoint allows using the reference point
RefPoint the point around which the shape is rotated (the mass center of the shape by default). The User can specify any point as the Reference Point.
MakeGroups forces the generation of new groups from existing ones
LinearVariation forces the computation of rotation angles as linear variation of the given Angles along path steps
Returns:
list of created groups (SMESH_GroupBase) and SMESH.Extrusion_Error if MakeGroups=True, only SMESH.Extrusion_Error otherwise
def ExtrusionAlongPathObject2D (   self,
  theObject,
  PathMesh,
  PathShape,
  NodeStart,
  HasAngles,
  Angles,
  HasRefPoint,
  RefPoint,
  MakeGroups = False,
  LinearVariation = False 
) [inherited]

Generates new elements by extrusion of the elements which belong to the object The path of extrusion must be a meshed edge.

Parameters:
theObject the object which elements should be processed
PathMesh mesh containing a 1D sub-mesh on the edge, along which the extrusion proceeds
PathShape shape(edge) defines the sub-mesh for the path
NodeStart the first or the last node on the edge. Defines the direction of extrusion
HasAngles allows the shape to be rotated around the path to get the resulting mesh in a helical fashion
Angles list of angles
HasRefPoint allows using the reference point
RefPoint the point around which the shape is rotated (the mass center of the shape by default). The User can specify any point as the Reference Point.
MakeGroups forces the generation of new groups from existing ones
LinearVariation forces the computation of rotation angles as linear variation of the given Angles along path steps
Returns:
list of created groups (SMESH_GroupBase) and SMESH.Extrusion_Error if MakeGroups=True, only SMESH.Extrusion_Error otherwise
 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