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. |
def RotationSweep | ( | self, | |
IDsOfElements, | |||
Axis, | |||
AngleInRadians, | |||
NbOfSteps, | |||
Tolerance, | |||
MakeGroups = False , |
|||
TotalAngle = False |
|||
) |
Generates new elements by rotation of the elements around the axis.
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 |
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.
theObject | object which elements should be sweeped. It can be a mesh, a sub mesh or a group. |
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 |
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.
theObject | object which elements should be sweeped. It can be a mesh, a sub mesh or a group. |
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 |
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.
theObject | object which elements should be sweeped. It can be a mesh, a sub mesh or a group. |
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 |
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.
IDsOfElements | the list of elements ids for extrusion |
StepVector | vector or DirStruct, defining the direction and value of extrusion for one step (the total extrusion length will be NbOfSteps * ||StepVector||) |
NbOfSteps | the number of steps |
MakeGroups | forces the generation of new groups from existing ones |
IsNodes | is True if elements with given ids are nodes |
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.
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 |
def ExtrusionSweepObject | ( | self, | |
theObject, | |||
StepVector, | |||
NbOfSteps, | |||
MakeGroups = False , |
|||
IsNodes = False |
|||
) |
Generates new elements by extrusion of the elements which belong to the object.
theObject | the object which elements should be processed. It can be a mesh, a sub mesh or a group. |
StepVector | vector, defining the direction and value of extrusion for one step (the total extrusion length will be NbOfSteps * ||StepVector||) |
NbOfSteps | the number of steps |
MakeGroups | forces the generation of new groups from existing ones |
IsNodes | is True if elements which belong to the object are nodes |
References smesh.ParseParameters().
def ExtrusionSweepObject1D | ( | self, | |
theObject, | |||
StepVector, | |||
NbOfSteps, | |||
MakeGroups = False |
|||
) |
Generates new elements by extrusion of the elements which belong to the object.
theObject | object which elements should be processed. It can be a mesh, a sub mesh or a group. |
StepVector | vector, defining the direction and value of extrusion for one step (the total extrusion length will be NbOfSteps * ||StepVector||) |
NbOfSteps | the number of steps |
MakeGroups | to generate new groups from existing ones |
References smesh.ParseParameters().
def ExtrusionSweepObject2D | ( | self, | |
theObject, | |||
StepVector, | |||
NbOfSteps, | |||
MakeGroups = False |
|||
) |
Generates new elements by extrusion of the elements which belong to the object.
theObject | object which elements should be processed. It can be a mesh, a sub mesh or a group. |
StepVector | vector, defining the direction and value of extrusion for one step (the total extrusion length will be NbOfSteps * ||StepVector||) |
NbOfSteps | the number of steps |
MakeGroups | forces the generation of new groups from existing ones |
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.
Base | mesh or group, or submesh, 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) |
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.
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 |
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.
theObject | the object which elements should be processed. It can be a mesh, a sub mesh or a group. |
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 |
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.
theObject | the object which elements should be processed. It can be a mesh, a sub mesh or a group. |
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 |
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.
theObject | the object which elements should be processed. It can be a mesh, a sub mesh or a group. |
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 |
References smesh.ParseAngles().