Version: 6.5.0
Home
 All Data Structures Namespaces Files Functions Variables Groups
Functions
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.

Detailed Description

Function Documentation

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

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

Parameters
IDsOfElementsthe list of ids of elements to sweep
Axisthe axis of rotation, AxisStruct or line(geom object)
AngleInRadiansthe angle of Rotation (in radians) or a name of variable which defines angle in degrees
NbOfStepsthe number of steps
Tolerancetolerance
MakeGroupsforces the generation of new groups from existing ones
TotalAnglegives 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

References Mesh.GetElementsId(), smesh.ParseAngles(), smesh.ParseParameters(), and Mesh.RotationSweepObject().

def RotationSweepObject (   self,
  theObject,
  Axis,
  AngleInRadians,
  NbOfSteps,
  Tolerance,
  MakeGroups = False,
  TotalAngle = False 
)

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

Parameters
theObjectobject which elements should be sweeped. It can be a mesh, a sub mesh or a group.
Axisthe axis of rotation, AxisStruct or line(geom object)
AngleInRadiansthe angle of Rotation
NbOfStepsnumber of steps
Tolerancetolerance
MakeGroupsforces the generation of new groups from existing ones
TotalAnglegives 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

References smesh.ParseAngles(), smesh.ParseParameters(), and Mesh.RotationSweepObject1D().

def RotationSweepObject1D (   self,
  theObject,
  Axis,
  AngleInRadians,
  NbOfSteps,
  Tolerance,
  MakeGroups = False,
  TotalAngle = False 
)

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

Parameters
theObjectobject which elements should be sweeped. It can be a mesh, a sub mesh or a group.
Axisthe axis of rotation, AxisStruct or line(geom object)
AngleInRadiansthe angle of Rotation
NbOfStepsnumber of steps
Tolerancetolerance
MakeGroupsforces the generation of new groups from existing ones
TotalAnglegives 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

References smesh.ParseAngles(), smesh.ParseParameters(), and Mesh.RotationSweepObject2D().

def RotationSweepObject2D (   self,
  theObject,
  Axis,
  AngleInRadians,
  NbOfSteps,
  Tolerance,
  MakeGroups = False,
  TotalAngle = False 
)

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

Parameters
theObjectobject which elements should be sweeped. It can be a mesh, a sub mesh or a group.
Axisthe axis of rotation, AxisStruct or line(geom object)
AngleInRadiansthe angle of Rotation
NbOfStepsnumber of steps
Tolerancetolerance
MakeGroupsforces the generation of new groups from existing ones
TotalAnglegives 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

References smesh.ParseAngles(), and smesh.ParseParameters().

def ExtrusionSweep (   self,
  IDsOfElements,
  StepVector,
  NbOfSteps,
  MakeGroups = False,
  IsNodes = False 
)

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

Parameters
IDsOfElementsthe list of elements ids for extrusion
StepVectorvector or DirStruct, defining the direction and value of extrusion for one step (the total extrusion length will be NbOfSteps * ||StepVector||)
NbOfStepsthe number of steps
MakeGroupsforces the generation of new groups from existing ones
IsNodesis True if elements with given ids are nodes
Returns
the list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise

References Mesh.AdvancedExtrusion(), Mesh.GetElementsId(), and smesh.ParseParameters().

def AdvancedExtrusion (   self,
  IDsOfElements,
  StepVector,
  NbOfSteps,
  ExtrFlags,
  SewTolerance,
  MakeGroups = False 
)

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

Parameters
IDsOfElementsis ids of elements
StepVectorvector, defining the direction and value of extrusion
NbOfStepsthe number of steps
ExtrFlagssets flags for extrusion
SewToleranceuses for comparing locations of nodes if flag EXTRUSION_FLAG_SEW is set
MakeGroupsforces 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,
  IsNodes = False 
)

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

Parameters
theObjectthe object which elements should be processed. It can be a mesh, a sub mesh or a group.
StepVectorvector, defining the direction and value of extrusion for one step (the total extrusion length will be NbOfSteps * ||StepVector||)
NbOfStepsthe number of steps
MakeGroupsforces the generation of new groups from existing ones
IsNodesis True if elements which belong to the object are nodes
Returns
list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise

References smesh.ParseParameters().

def ExtrusionSweepObject1D (   self,
  theObject,
  StepVector,
  NbOfSteps,
  MakeGroups = False 
)

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

Parameters
theObjectobject which elements should be processed. It can be a mesh, a sub mesh or a group.
StepVectorvector, defining the direction and value of extrusion for one step (the total extrusion length will be NbOfSteps * ||StepVector||)
NbOfStepsthe number of steps
MakeGroupsto generate new groups from existing ones
Returns
list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise

References smesh.ParseParameters().

def ExtrusionSweepObject2D (   self,
  theObject,
  StepVector,
  NbOfSteps,
  MakeGroups = False 
)

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

Parameters
theObjectobject which elements should be processed. It can be a mesh, a sub mesh or a group.
StepVectorvector, defining the direction and value of extrusion for one step (the total extrusion length will be NbOfSteps * ||StepVector||)
NbOfStepsthe number of steps
MakeGroupsforces the generation of new groups from existing ones
Returns
list of created groups (SMESH_GroupBase) if MakeGroups=True, empty list otherwise

References Mesh.ExtrusionAlongPathX(), and smesh.ParseParameters().

def ExtrusionAlongPathX (   self,
  Base,
  Path,
  NodeStart,
  HasAngles,
  Angles,
  LinearVariation,
  HasRefPoint,
  RefPoint,
  MakeGroups,
  ElemType 
)

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

Parameters
Basemesh or group, or submesh, or list of ids of elements for extrusion
Path- 1D mesh or 1D sub-mesh, along which proceeds the extrusion
NodeStartthe start node from Path. Defines the direction of extrusion
HasAnglesallows the shape to be rotated around the path to get the resulting mesh in a helical fashion
Angleslist of angles in radians
LinearVariationforces the computation of rotation angles as linear variation of the given Angles along path steps
HasRefPointallows using the reference point
RefPointthe 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.
MakeGroupsforces the generation of new groups from existing ones
ElemTypetype 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

References Mesh.ExtrusionAlongPath(), Mesh.GetElementsId(), and smesh.ParseAngles().

def ExtrusionAlongPath (   self,
  IDsOfElements,
  PathMesh,
  PathShape,
  NodeStart,
  HasAngles,
  Angles,
  HasRefPoint,
  RefPoint,
  MakeGroups = False,
  LinearVariation = False 
)

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

Parameters
IDsOfElementsids of elements
PathMeshmesh containing a 1D sub-mesh on the edge, along which proceeds the extrusion
PathShapeshape(edge) defines the sub-mesh for the path
NodeStartthe first or the last node on the edge. Defines the direction of extrusion
HasAnglesallows the shape to be rotated around the path to get the resulting mesh in a helical fashion
Angleslist of angles in radians
HasRefPointallows using the reference point
RefPointthe 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.
MakeGroupsforces the generation of new groups from existing ones
LinearVariationforces 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

References Mesh.ExtrusionAlongPathObject(), Mesh.GetElementsId(), and smesh.ParseAngles().

def ExtrusionAlongPathObject (   self,
  theObject,
  PathMesh,
  PathShape,
  NodeStart,
  HasAngles,
  Angles,
  HasRefPoint,
  RefPoint,
  MakeGroups = False,
  LinearVariation = False 
)

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

Parameters
theObjectthe object which elements should be processed. It can be a mesh, a sub mesh or a group.
PathMeshmesh containing a 1D sub-mesh on the edge, along which the extrusion proceeds
PathShapeshape(edge) defines the sub-mesh for the path
NodeStartthe first or the last node on the edge. Defines the direction of extrusion
HasAnglesallows the shape to be rotated around the path to get the resulting mesh in a helical fashion
Angleslist of angles
HasRefPointallows using the reference point
RefPointthe 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.
MakeGroupsforces the generation of new groups from existing ones
LinearVariationforces 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

References Mesh.ExtrusionAlongPathObject1D(), and smesh.ParseAngles().

def ExtrusionAlongPathObject1D (   self,
  theObject,
  PathMesh,
  PathShape,
  NodeStart,
  HasAngles,
  Angles,
  HasRefPoint,
  RefPoint,
  MakeGroups = False,
  LinearVariation = False 
)

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

Parameters
theObjectthe object which elements should be processed. It can be a mesh, a sub mesh or a group.
PathMeshmesh containing a 1D sub-mesh on the edge, along which the extrusion proceeds
PathShapeshape(edge) defines the sub-mesh for the path
NodeStartthe first or the last node on the edge. Defines the direction of extrusion
HasAnglesallows the shape to be rotated around the path to get the resulting mesh in a helical fashion
Angleslist of angles
HasRefPointallows using the reference point
RefPointthe 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.
MakeGroupsforces the generation of new groups from existing ones
LinearVariationforces 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

References Mesh.ExtrusionAlongPathObject2D(), and smesh.ParseAngles().

def ExtrusionAlongPathObject2D (   self,
  theObject,
  PathMesh,
  PathShape,
  NodeStart,
  HasAngles,
  Angles,
  HasRefPoint,
  RefPoint,
  MakeGroups = False,
  LinearVariation = False 
)

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

Parameters
theObjectthe object which elements should be processed. It can be a mesh, a sub mesh or a group.
PathMeshmesh containing a 1D sub-mesh on the edge, along which the extrusion proceeds
PathShapeshape(edge) defines the sub-mesh for the path
NodeStartthe first or the last node on the edge. Defines the direction of extrusion
HasAnglesallows the shape to be rotated around the path to get the resulting mesh in a helical fashion
Angleslist of angles
HasRefPointallows using the reference point
RefPointthe 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.
MakeGroupsforces the generation of new groups from existing ones
LinearVariationforces 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

References smesh.ParseAngles().

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