Create a mesh group based on geometric
-object grp and give a name,
-if this parameter is not defined the name is the same as the geometric
-group name
-Note: Works like GroupOnGeom().
-
-
Creates a mesh group based on geometric
-object grp and give a name,
-if this parameter is not defined the name is the same as the geometric
-group name.
-
Returns ID of node by given index for
-given element
-If there is not element for given ID - returns -1
-If there is not node for given index - returns -2.
-
If during last operation of MeshEditor
-some nodes were created this method returns list of it's IDs,
-if new nodes not created - returns empty list.
-
If during last operation of MeshEditor
-some elements were created this method returns list of it's IDs,
-if new elements not creared - returns empty list.
-
-The class contains mesh shape, SMESH_Mesh, SMESH_MeshEditor More
-details.
-
-
-
Member Function Documentation
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.__init__
-
(
-
-
self,
-
-
-
-
-
-
-
-
obj = 0,
-
-
-
-
-
-
-
-
-
name = 0
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Creates mesh on the shape geom(or the empty mesh if geom
-equal to 0), sets GUI name of this mesh to name.
-
-
Parameters:
-
-
-
-
-
-
-
obj
-
Shape to be meshed or SMESH_Mesh object
-
-
-
-
-
name
-
Study name of the mesh
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.SetMesh
-
(
-
-
self,
-
-
-
-
-
-
-
-
theMesh
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
theMesh
-
is SMESH_Mesh object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.GetMesh
-
(
-
-
self
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
SMESH_Mesh object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.GetName
-
(
-
-
self
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.SetName
-
(
-
-
self,
-
-
-
-
-
-
-
-
name
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.GetSubMesh
-
(
-
-
self,
-
-
-
-
-
-
-
-
theSubObject,
-
-
-
-
-
-
-
-
-
name
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
The subMesh object gives access to nodes and elements IDs.
-SubMesh will be used instead of SubShape in a next idl version to
-adress a specific subMesh...
If the optional algo parameter is not sets, this
-algorithm is REGULAR. If the optional geom parameter is not
-sets, this algorithm is global.
-Otherwise, this algorithm define a submesh based on geom
-subshape.
The parameter algo permits to choice the algorithm:
-NETGEN or GHS3D If the optional geom parameter is not sets,
-this algorithm is global.
-Otherwise, this algorithm define a submesh based on geom
-subshape.
List of node IDs for volume creation face by face.
-
-
-
-
-
Quantities
-
List of integer values, Quantities[i] gives
-quantity of nodes in face number i.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.AddPolyhedralVolumeByFaces
-
(
-
-
self,
-
-
-
-
-
-
-
-
IdsOfFaces
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
IdsOfFaces
-
List of face IDs for volume creation.
-
-
-
-
-
-Note: The created volume will refer only to nodes of the given faces,
-not to the faces itself.
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.MoveNode
-
(
-
-
self,
-
-
-
-
-
-
-
-
NodeID,
-
-
-
-
-
-
-
-
x,
-
-
-
-
-
-
-
-
y,
-
-
-
-
-
-
-
-
z
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
NodeID
-
id of the node
-
-
-
-
-
x
-
displacing along the X axis
-
-
-
-
-
y
-
displacing along the Y axis
-
-
-
-
-
z
-
displacing along the Z axis
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.InverseDiag
-
(
-
-
self,
-
-
-
-
-
-
-
-
NodeID1,
-
-
-
-
-
-
-
-
NodeID2
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
NodeID1
-
first node id
-
-
-
-
-
NodeID2
-
second node id
-
-
-
-
-
-
-
Returns:
-
false if proper faces not found
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.DeleteDiag
-
(
-
-
self,
-
-
-
-
-
-
-
-
NodeID1,
-
-
-
-
-
-
-
-
NodeID2
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
NodeID1
-
first node id
-
-
-
-
-
NodeID2
-
second node id
-
-
-
-
-
-
-
Returns:
-
false if proper faces not found
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.Reorient
-
(
-
-
self,
-
-
-
-
-
-
-
-
IDsOfElements
-= None
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
IDsOfElements
-
if undefined reorient all mesh elements
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.ReorientObject
-
(
-
-
self,
-
-
-
-
-
-
-
-
theObject
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
theObject
-
is mesh, submesh or group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.TriToQuad
-
(
-
-
self,
-
-
-
-
-
-
-
-
IDsOfElements,
-
-
-
-
-
-
-
-
-
theCriterion,
-
-
-
-
-
-
-
-
-
MaxAngle
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
IDsOfElements
-
The triangles to be fused,
-
-
-
-
-
theCriterion
-
is FT_...; used to choose a neighbour to fuse with.
-
-
-
-
-
-
MaxAngle
-
is a max angle between element normals at which
-fusion is still performed; theMaxAngle is mesured in radians.
-
-
-
-
-
-
-
Returns:
-
TRUE in case of success, FALSE otherwise.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.TriToQuadObject
-
(
-
-
self,
-
-
-
-
-
-
-
-
theObject,
-
-
-
-
-
-
-
-
theCriterion,
-
-
-
-
-
-
-
-
-
MaxAngle
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
theObject
-
is mesh, submesh or group
-
-
-
-
-
theCriterion
-
is FT_...; used to choose a neighbour to fuse with.
-
-
-
-
-
-
MaxAngle
-
is a max angle between element normals at which
-fusion is still performed; theMaxAngle is mesured in radians.
-
-
-
-
-
-
-
Returns:
-
TRUE in case of success, FALSE otherwise.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.QuadToTri
-
(
-
-
self,
-
-
-
-
-
-
-
-
IDsOfElements,
-
-
-
-
-
-
-
-
-
theCriterion
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
IDsOfElements
-
the faces to be splitted.
-
-
-
-
-
theCriterion
-
is FT_...; used to choose a diagonal for splitting.
-
-
-
-
-
-
-
TRUE in case of success, FALSE otherwise.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.QuadToTriObject
-
(
-
-
self,
-
-
-
-
-
-
-
-
theObject,
-
-
-
-
-
-
-
-
theCriterion
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
theObject
-
object to taking list of elements from, is mesh,
-submesh or group
-
-
-
-
-
theCriterion
-
is FT_...; used to choose a diagonal for splitting.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.SplitQuad
-
(
-
-
self,
-
-
-
-
-
-
-
-
IDsOfElements,
-
-
-
-
-
-
-
-
-
Diag13
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
theElems
-
The faces to be splitted
-
-
-
-
-
the13Diag
-
is used to choose a diagonal for splitting.
-
-
-
-
-
-
-
Returns:
-
TRUE in case of success, FALSE otherwise.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.SplitQuadObject
-
(
-
-
self,
-
-
-
-
-
-
-
-
theObject,
-
-
-
-
-
-
-
-
Diag13
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
theObject
-
is object to taking list of elements from, is mesh,
-submesh or group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.BestSplit
-
(
-
-
self,
-
-
-
-
-
-
-
-
IDOfQuad,
-
-
-
-
-
-
-
-
theCriterion
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
IDOfQuad
-
ID of the quadrangle to be splitted.
-
-
-
-
-
theCriterion
-
is FT_...; a criterion to choose a diagonal for
-splitting.
-
-
-
-
-
-
-
Returns:
-
1 if 1-3 diagonal is better, 2 if 2-4 diagonal is better, 0
-if error occurs.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.Smooth
-
(
-
-
self,
-
-
-
-
-
-
-
-
IDsOfElements,
-
-
-
-
-
-
-
-
-
IDsOfFixedNodes,
-
-
-
-
-
-
-
-
-
MaxNbOfIterations,
-
-
-
-
-
-
-
-
-
MaxAspectRatio,
-
-
-
-
-
-
-
-
-
Method
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
IDsOfElements
-
list if ids of elements to smooth
-
-
-
-
-
IDsOfFixedNodes
-
list of ids of fixed nodes. Note that nodes built
-on edges and boundary nodes are always fixed.
-
-
-
-
-
MaxNbOfIterations
-
maximum number of iterations
-
-
-
-
-
MaxAspectRatio
-
varies in range [1.0, inf]
-
-
-
-
-
Method
-
is Laplacian(LAPLACIAN_SMOOTH) or
-Centroidal(CENTROIDAL_SMOOTH)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.SmoothObject
-
(
-
-
self,
-
-
-
-
-
-
-
-
theObject,
-
-
-
-
-
-
-
-
IDsOfFixedNodes,
-
-
-
-
-
-
-
-
-
MaxNbOfIterations,
-
-
-
-
-
-
-
-
-
MaxxAspectRatio,
-
-
-
-
-
-
-
-
-
Method
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
theObject
-
object to smooth
-
-
-
-
-
IDsOfFixedNodes
-
list of ids of fixed nodes. Note that nodes built
-on edges and boundary nodes are always fixed.
-
-
-
-
-
MaxNbOfIterations
-
maximum number of iterations
-
-
-
-
-
MaxAspectRatio
-
varies in range [1.0, inf]
-
-
-
-
-
Method
-
is Laplacian(LAPLACIAN_SMOOTH) or
-Centroidal(CENTROIDAL_SMOOTH)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.SmoothParametric
-
(
-
-
IDsOfElements,
-
-
-
-
-
-
-
-
-
IDsOfFixedNodes,
-
-
-
-
-
-
-
-
-
MaxNbOfIterations,
-
-
-
-
-
-
-
-
-
MaxAspectRatio,
-
-
-
-
-
-
-
-
-
Method
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
IDsOfElements
-
list if ids of elements to smooth
-
-
-
-
-
IDsOfFixedNodes
-
list of ids of fixed nodes. Note that nodes built
-on edges and boundary nodes are always fixed.
-
-
-
-
-
MaxNbOfIterations
-
maximum number of iterations
-
-
-
-
-
MaxAspectRatio
-
varies in range [1.0, inf]
-
-
-
-
-
Method
-
is Laplacian(LAPLACIAN_SMOOTH) or
-Centroidal(CENTROIDAL_SMOOTH)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.SmoothParametricObject
-
(
-
-
self,
-
-
-
-
-
-
-
-
theObject,
-
-
-
-
-
-
-
-
IDsOfFixedNodes,
-
-
-
-
-
-
-
-
-
MaxNbOfIterations,
-
-
-
-
-
-
-
-
-
MaxAspectRatio,
-
-
-
-
-
-
-
-
-
Method
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
theObject
-
object to smooth
-
-
-
-
-
IDsOfFixedNodes
-
list of ids of fixed nodes. Note that nodes built
-on edges and boundary nodes are always fixed.
-
-
-
-
-
MaxNbOfIterations
-
maximum number of iterations
-
-
-
-
-
MaxAspectRatio
-
varies in range [1.0, inf]
-
-
-
-
-
Method
-
is Laplacian(LAPLACIAN_SMOOTH) or
-Centroidal(CENTROIDAL_SMOOTH)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.ConvertToQuadratic
-
(
-
-
self,
-
-
-
-
-
-
-
-
theForce3d
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.ConvertFromQuadratic
-
(
-
-
self
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.RenumberNodes
-
(
-
-
self
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.RenumberElements
-
(
-
-
self
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.RotationSweep
-
(
-
-
self,
-
-
-
-
-
-
-
-
IDsOfElements,
-
-
-
-
-
-
-
-
-
Axix,
-
-
-
-
-
-
-
-
AngleInRadians,
-
-
-
-
-
-
-
-
-
NbOfSteps,
-
-
-
-
-
-
-
-
Tolerance
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
IDsOfElements
-
list of ids of elements to sweep
-
-
-
-
-
Axix
-
axis of rotation, AxisStruct or line(geom object)
-
-
-
-
-
AngleInRadians
-
angle of Rotation
-
-
-
-
-
NbOfSteps
-
number of steps
-
-
-
-
-
Tolerance
-
tolerance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.RotationSweepObject
-
(
-
-
self,
-
-
-
-
-
-
-
-
theObject,
-
-
-
-
-
-
-
-
Axix,
-
-
-
-
-
-
-
-
AngleInRadians,
-
-
-
-
-
-
-
-
-
NbOfSteps,
-
-
-
-
-
-
-
-
Tolerance
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
theObject
-
object wich elements should be sweeped
-
-
-
-
-
Axix
-
axis of rotation, AxisStruct or line(geom object)
-
-
-
-
-
AngleInRadians
-
angle of Rotation
-
-
-
-
-
NbOfSteps
-
number of steps
-
-
-
-
-
Tolerance
-
tolerance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.ExtrusionSweep
-
(
-
-
self,
-
-
-
-
-
-
-
-
IDsOfElements,
-
-
-
-
-
-
-
-
-
StepVector,
-
-
-
-
-
-
-
-
NbOfSteps
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
IDsOfElements
-
list of elements ids for extrusion
-
-
-
-
-
StepVector
-
vector, defining the direction and value of
-extrusion
-
-
-
-
-
NbOfSteps
-
the number of steps
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.AdvancedExtrusion
-
(
-
-
self,
-
-
-
-
-
-
-
-
IDsOfElements,
-
-
-
-
-
-
-
-
-
StepVector,
-
-
-
-
-
-
-
-
NbOfSteps,
-
-
-
-
-
-
-
-
ExtrFlags,
-
-
-
-
-
-
-
-
SewTolerance
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
IDsOfElements
-
is ids of elements
-
-
-
-
-
StepVector
-
vector, defining the direction and value of
-extrusion
-
-
-
-
-
NbOfSteps
-
the number of steps
-
-
-
-
-
ExtrFlags
-
set flags for performing extrusion
-
-
-
-
-
SewTolerance
-
uses for comparing locations of nodes if flag
-EXTRUSION_FLAG_SEW is set
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.ExtrusionSweepObject
-
(
-
-
self,
-
-
-
-
-
-
-
-
theObject,
-
-
-
-
-
-
-
-
StepVector,
-
-
-
-
-
-
-
-
NbOfSteps
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
theObject
-
object wich elements should be processed
-
-
-
-
-
StepVector
-
vector, defining the direction and value of
-extrusion
-
-
-
-
-
NbOfSteps
-
the number of steps
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.ExtrusionSweepObject1D
-
(
-
-
self,
-
-
-
-
-
-
-
-
theObject,
-
-
-
-
-
-
-
-
StepVector,
-
-
-
-
-
-
-
-
NbOfSteps
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
theObject
-
object wich elements should be processed
-
-
-
-
-
StepVector
-
vector, defining the direction and value of
-extrusion
-
-
-
-
-
NbOfSteps
-
the number of steps
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.ExtrusionSweepObject2D
-
(
-
-
self,
-
-
-
-
-
-
-
-
theObject,
-
-
-
-
-
-
-
-
StepVector,
-
-
-
-
-
-
-
-
NbOfSteps
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
theObject
-
object wich elements should be processed
-
-
-
-
-
StepVector
-
vector, defining the direction and value of
-extrusion
-
-
-
-
-
NbOfSteps
-
the number of steps
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.ExtrusionAlongPath
-
(
-
-
self,
-
-
-
-
-
-
-
-
IDsOfElements,
-
-
-
-
-
-
-
-
-
PathMesh,
-
-
-
-
-
-
-
-
PathShape,
-
-
-
-
-
-
-
-
NodeStart,
-
-
-
-
-
-
-
-
HasAngles,
-
-
-
-
-
-
-
-
Angles,
-
-
-
-
-
-
-
-
HasRefPoint,
-
-
-
-
-
-
-
-
RefPoint
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
IDsOfElements
-
is ids of elements
-
-
-
-
-
PathMesh
-
mesh containing a 1D sub-mesh on the edge, along
-which proceeds the extrusion
-
-
-
-
-
PathShape
-
is shape(edge); as the mesh can be complex, the
-edge is used to define the sub-mesh for the path
-
-
-
-
-
NodeStart
-
the first or the last node on the edge. It is used
-to define 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 to use base point
-
-
-
-
-
RefPoint
-
point around which the shape is rotated(the mass
-center of the shape by default). User can specify any point as the Base
-Point and the shape will be rotated with respect to this point.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.ExtrusionAlongPathObject
-
(
-
-
self,
-
-
-
-
-
-
-
-
theObject,
-
-
-
-
-
-
-
-
PathMesh,
-
-
-
-
-
-
-
-
PathShape,
-
-
-
-
-
-
-
-
NodeStart,
-
-
-
-
-
-
-
-
HasAngles,
-
-
-
-
-
-
-
-
Angles,
-
-
-
-
-
-
-
-
HasRefPoint,
-
-
-
-
-
-
-
-
RefPoint
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
IDsOfElements
-
is ids of elements
-
-
-
-
-
PathMesh
-
mesh containing a 1D sub-mesh on the edge, along
-which proceeds the extrusion
-
-
-
-
-
PathShape
-
is shape(edge); as the mesh can be complex, the
-edge is used to define the sub-mesh for the path
-
-
-
-
-
NodeStart
-
the first or the last node on the edge. It is used
-to define 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 to use base point
-
-
-
-
-
RefPoint
-
point around which the shape is rotated(the mass
-center of the shape by default). User can specify any point as the Base
-Point and the shape will be rotated with respect to this point.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.Mirror
-
(
-
-
self,
-
-
-
-
-
-
-
-
IDsOfElements,
-
-
-
-
-
-
-
-
-
Mirror,
-
-
-
-
-
-
-
-
theMirrorType,
-
-
-
-
-
-
-
-
-
Copy = 0
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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 geom
-object this parameter is unnecessary
-
-
-
-
-
Copy
-
allows to copy element(Copy is 1) or to replace
-with its mirroring(Copy is 0)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.MirrorObject
-
(
-
-
self,
-
-
-
-
-
-
-
-
theObject,
-
-
-
-
-
-
-
-
Mirror,
-
-
-
-
-
-
-
-
theMirrorType,
-
-
-
-
-
-
-
-
-
Copy = 0
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
theObject
-
mesh, submesh or group
-
-
-
-
-
Mirror
-
is AxisStruct or geom object(point, line, plane)
-
-
-
-
-
theMirrorType
-
is POINT, AXIS or PLANE If the Mirror is geom
-object this parameter is unnecessary
-
-
-
-
-
Copy
-
allows to copy element(Copy is 1) or to replace
-with its mirroring(Copy is 0)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.Translate
-
(
-
-
self,
-
-
-
-
-
-
-
-
IDsOfElements,
-
-
-
-
-
-
-
-
-
Vector,
-
-
-
-
-
-
-
-
Copy
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
IDsOfElements
-
list of elements ids
-
-
-
-
-
Vector
-
direction of translation(DirStruct or vector)
-
-
-
-
-
Copy
-
allows to copy the translated elements
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.TranslateObject
-
(
-
-
self,
-
-
-
-
-
-
-
-
theObject,
-
-
-
-
-
-
-
-
Vector,
-
-
-
-
-
-
-
-
Copy
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
theObject
-
object to translate(mesh, submesh, or group)
-
-
-
-
-
Vector
-
direction of translation(DirStruct or geom vector)
-
-
-
-
-
Copy
-
allows to copy the translated elements
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.Rotate
-
(
-
-
self,
-
-
-
-
-
-
-
-
IDsOfElements,
-
-
-
-
-
-
-
-
-
Axis,
-
-
-
-
-
-
-
-
AngleInRadians,
-
-
-
-
-
-
-
-
-
Copy
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
IDsOfElements
-
list of elements ids
-
-
-
-
-
Axis
-
axis of rotation(AxisStruct or geom line)
-
-
-
-
-
AngleInRadians
-
angle of rotation(in radians)
-
-
-
-
-
Copy
-
allows to copy the rotated elements
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.RotateObject
-
(
-
-
self,
-
-
-
-
-
-
-
-
theObject,
-
-
-
-
-
-
-
-
Axis,
-
-
-
-
-
-
-
-
AngleInRadians,
-
-
-
-
-
-
-
-
-
Copy
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
theObject
-
object to rotate(mesh, submesh, or group)
-
-
-
-
-
Axis
-
axis of rotation(AxisStruct or geom line)
-
-
-
-
-
AngleInRadians
-
angle of rotation(in radians)
-
-
-
-
-
Copy
-
allows to copy the rotated elements
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.FindCoincidentNodes
-
(
-
-
self,
-
-
-
-
-
-
-
-
Tolerance
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
Tolerance
-
tolerance value
-
-
-
-
-
list
-
of group of nodes
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.MergeNodes
-
(
-
-
self,
-
-
-
-
-
-
-
-
GroupsOfNodes
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
list
-
of group of nodes
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.MergeEqualElements
-
(
-
-
self
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.SewFreeBorders
-
(
-
-
self,
-
-
-
-
-
-
-
-
FirstNodeID1,
-
-
-
-
-
-
-
-
-
SecondNodeID1,
-
-
-
-
-
-
-
-
-
LastNodeID1,
-
-
-
-
-
-
-
-
FirstNodeID2,
-
-
-
-
-
-
-
-
-
SecondNodeID2,
-
-
-
-
-
-
-
-
-
LastNodeID2,
-
-
-
-
-
-
-
-
CreatePolygons,
-
-
-
-
-
-
-
-
-
CreatePolyedrs
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.SewConformFreeBorders
-
(
-
-
self,
-
-
-
-
-
-
-
-
FirstNodeID1,
-
-
-
-
-
-
-
-
-
SecondNodeID1,
-
-
-
-
-
-
-
-
-
LastNodeID1,
-
-
-
-
-
-
-
-
FirstNodeID2,
-
-
-
-
-
-
-
-
-
SecondNodeID2
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.SewBorderToSide
-
(
-
-
self,
-
-
-
-
-
-
-
-
FirstNodeIDOnFreeBorder,
-
-
-
-
-
-
-
-
-
SecondNodeIDOnFreeBorder,
-
-
-
-
-
-
-
-
-
LastNodeIDOnFreeBorder,
-
-
-
-
-
-
-
-
-
FirstNodeIDOnSide,
-
-
-
-
-
-
-
-
-
LastNodeIDOnSide,
-
-
-
-
-
-
-
-
-
CreatePolygons,
-
-
-
-
-
-
-
-
-
CreatePolyedrs
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.SewSideElements
-
(
-
-
self,
-
-
-
-
-
-
-
-
IDsOfSide1Elements,
-
-
-
-
-
-
-
-
-
IDsOfSide2Elements,
-
-
-
-
-
-
-
-
-
NodeID1OfSide1ToMerge,
-
-
-
-
-
-
-
-
-
NodeID1OfSide2ToMerge,
-
-
-
-
-
-
-
-
-
NodeID2OfSide1ToMerge,
-
-
-
-
-
-
-
-
-
NodeID2OfSide2ToMerge
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Nodes belonging to Side1 are merged with nodes of elements of
-Side2. Number of elements in theSide1 and in theSide2 must be equal and
-they should have similar node connectivity. The nodes to merge should
-belong to sides borders and the first node should be linked to the
-second.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
-smesh.Mesh.ChangeElemNodes
-
(
-
-
self,
-
-
-
-
-
-
-
-
ide,
-
-
-
-
-
-
-
-
newIDs
-
-
-
-
-
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
-
ide
-
the element id
-
-
-
-
-
newIDs
-
nodes ids
-
-
-
-
-
-
-
Returns:
-
If number of nodes is not corresponded to type of element -
-returns false
Create a mesh group based on geometric object grp and give a name,
+ if this parameter is not defined the name is the same as the geometric group name
+ Note: Works like GroupOnGeom().
Creates a mesh group based on geometric object grp and give a name,
+ if this parameter is not defined the name is the same as the geometric group name.
Returns ID of node by given index for given element
+ If there is not element for given ID - returns -1
+ If there is not node for given index - returns -2.
If during last operation of MeshEditor some elements were created this method returns list of it's IDs,
+ if new elements not creared - returns empty list.
+The class contains mesh shape, SMESH_Mesh, SMESH_MeshEditor More details.
+
+
Member Function Documentation
+
+
+
+
+
+
+
def smesh.Mesh.__init__
+
(
+
+
self,
+
+
+
+
+
+
obj = 0,
+
+
+
+
+
+
name = 0
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Creates mesh on the shape geom(or the empty mesh if geom equal to 0), sets GUI name of this mesh to name.
Parameters:
+
+
obj
Shape to be meshed or SMESH_Mesh object
+
name
Study name of the mesh
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.SetMesh
+
(
+
+
self,
+
+
+
+
+
+
theMesh
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
theMesh
is SMESH_Mesh object
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.GetMesh
+
(
+
+
self
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Returns:
SMESH_Mesh object
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.GetName
+
(
+
+
self
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.SetName
+
(
+
+
self,
+
+
+
+
+
+
name
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.GetSubMesh
+
(
+
+
self,
+
+
+
+
+
+
theSubObject,
+
+
+
+
+
+
name
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+The subMesh object gives access to nodes and elements IDs.
+ SubMesh will be used instead of SubShape in a next idl version to adress a specific subMesh...
+If the optional algo parameter is not sets, this algorithm is REGULAR. If the optional geom parameter is not sets, this algorithm is global.
+ Otherwise, this algorithm define a submesh based on geom subshape.
+The parameter algo permits to choice the algorithm: NETGEN or GHS3D If the optional geom parameter is not sets, this algorithm is global.
+ Otherwise, this algorithm define a submesh based on geom subshape.
List of node IDs for volume creation face by face.
+
Quantities
List of integer values, Quantities[i] gives quantity of nodes in face number i.
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.AddPolyhedralVolumeByFaces
+
(
+
+
self,
+
+
+
+
+
+
IdsOfFaces
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
IdsOfFaces
List of face IDs for volume creation.
+
+
+Note: The created volume will refer only to nodes of the given faces, not to the faces itself.
+
+
+
+
+
+
+
+
+
def smesh.Mesh.MoveNode
+
(
+
+
self,
+
+
+
+
+
+
NodeID,
+
+
+
+
+
+
x,
+
+
+
+
+
+
y,
+
+
+
+
+
+
z
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
NodeID
id of the node
+
x
new X coordinate
+
y
new Y coordinate
+
z
new Z coordinate
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.FindNodeClosestTo
+
(
+
+
self,
+
+
+
+
+
+
x,
+
+
+
+
+
+
y,
+
+
+
+
+
+
z
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
x
X coordinate of a point
+
y
Y coordinate of a point
+
z
Z coordinate of a point
+
+
+
Returns:
id of a node
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.MeshToPassThroughAPoint
+
(
+
+
self,
+
+
+
+
+
+
x,
+
+
+
+
+
+
y,
+
+
+
+
+
+
z
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
x
X coordinate of a point
+
y
Y coordinate of a point
+
z
Z coordinate of a point
+
+
+
Returns:
id of a moved node
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.InverseDiag
+
(
+
+
self,
+
+
+
+
+
+
NodeID1,
+
+
+
+
+
+
NodeID2
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
NodeID1
first node id
+
NodeID2
second node id
+
+
+
Returns:
false if proper faces not found
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.DeleteDiag
+
(
+
+
self,
+
+
+
+
+
+
NodeID1,
+
+
+
+
+
+
NodeID2
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
NodeID1
first node id
+
NodeID2
second node id
+
+
+
Returns:
false if proper faces not found
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.Reorient
+
(
+
+
self,
+
+
+
+
+
+
IDsOfElements = None
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
IDsOfElements
if undefined reorient all mesh elements
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.ReorientObject
+
(
+
+
self,
+
+
+
+
+
+
theObject
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
theObject
is mesh, submesh or group
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.TriToQuad
+
(
+
+
self,
+
+
+
+
+
+
IDsOfElements,
+
+
+
+
+
+
theCriterion,
+
+
+
+
+
+
MaxAngle
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
IDsOfElements
The triangles to be fused,
+
theCriterion
is FT_...; used to choose a neighbour to fuse with.
+
MaxAngle
is a max angle between element normals at which fusion is still performed; theMaxAngle is mesured in radians.
+
+
+
Returns:
TRUE in case of success, FALSE otherwise.
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.TriToQuadObject
+
(
+
+
self,
+
+
+
+
+
+
theObject,
+
+
+
+
+
+
theCriterion,
+
+
+
+
+
+
MaxAngle
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
theObject
is mesh, submesh or group
+
theCriterion
is FT_...; used to choose a neighbour to fuse with.
+
MaxAngle
is a max angle between element normals at which fusion is still performed; theMaxAngle is mesured in radians.
+
+
+
Returns:
TRUE in case of success, FALSE otherwise.
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.QuadToTri
+
(
+
+
self,
+
+
+
+
+
+
IDsOfElements,
+
+
+
+
+
+
theCriterion
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
IDsOfElements
the faces to be splitted.
+
theCriterion
is FT_...; used to choose a diagonal for splitting.
+
TRUE in case of success, FALSE otherwise.
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.QuadToTriObject
+
(
+
+
self,
+
+
+
+
+
+
theObject,
+
+
+
+
+
+
theCriterion
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
theObject
object to taking list of elements from, is mesh, submesh or group
+
theCriterion
is FT_...; used to choose a diagonal for splitting.
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.SplitQuad
+
(
+
+
self,
+
+
+
+
+
+
IDsOfElements,
+
+
+
+
+
+
Diag13
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
theElems
The faces to be splitted
+
the13Diag
is used to choose a diagonal for splitting.
+
+
+
Returns:
TRUE in case of success, FALSE otherwise.
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.SplitQuadObject
+
(
+
+
self,
+
+
+
+
+
+
theObject,
+
+
+
+
+
+
Diag13
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
theObject
is object to taking list of elements from, is mesh, submesh or group
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.BestSplit
+
(
+
+
self,
+
+
+
+
+
+
IDOfQuad,
+
+
+
+
+
+
theCriterion
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
IDOfQuad
ID of the quadrangle to be splitted.
+
theCriterion
is FT_...; a criterion to choose a diagonal for splitting.
+
+
+
Returns:
1 if 1-3 diagonal is better, 2 if 2-4 diagonal is better, 0 if error occurs.
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.SplitQuadsNearTriangularFacets
+
(
+
+
self
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.SplitHexaToTetras
+
(
+
+
self,
+
+
+
+
+
+
theObject,
+
+
+
+
+
+
theNode000,
+
+
+
+
+
+
theNode001
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Use pattern mapping functionality for splitting.
Parameters:
+
+
theObject
object to take list of hexahedrons from; is mesh, submesh or group.
+
theNode000,theNode001
is in range [0,7]; give an orientation of the pattern relatively each hexahedron: the (0,0,0) key-point of pattern will be mapped into <theNode000>-th node of each volume, the (0,0,1) key-point will be mapped into <theNode001>-th node of each volume. The (0,0,0) key-point of used pattern corresponds to not split corner.
+
TRUE in case of success, FALSE otherwise.
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.SplitHexaToPrisms
+
(
+
+
self,
+
+
+
+
+
+
theObject,
+
+
+
+
+
+
theNode000,
+
+
+
+
+
+
theNode001
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Use pattern mapping functionality for splitting.
Parameters:
+
+
theObject
object to take list of hexahedrons from; is mesh, submesh or group.
+
theNode000,theNode001
is in range [0,7]; give an orientation of the pattern relatively each hexahedron: the (0,0,0) key-point of pattern will be mapped into <theNode000>-th node of each volume, the (0,0,1) key-point will be mapped into <theNode001>-th node of each volume. The edge (0,0,0)-(0,0,1) of used pattern connects two not split corners.
+
TRUE in case of success, FALSE otherwise.
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.Smooth
+
(
+
+
self,
+
+
+
+
+
+
IDsOfElements,
+
+
+
+
+
+
IDsOfFixedNodes,
+
+
+
+
+
+
MaxNbOfIterations,
+
+
+
+
+
+
MaxAspectRatio,
+
+
+
+
+
+
Method
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
IDsOfElements
list if ids of elements to smooth
+
IDsOfFixedNodes
list of ids of fixed nodes. Note that nodes built on edges and boundary nodes are always fixed.
+
MaxNbOfIterations
maximum number of iterations
+
MaxAspectRatio
varies in range [1.0, inf]
+
Method
is Laplacian(LAPLACIAN_SMOOTH) or Centroidal(CENTROIDAL_SMOOTH)
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.SmoothObject
+
(
+
+
self,
+
+
+
+
+
+
theObject,
+
+
+
+
+
+
IDsOfFixedNodes,
+
+
+
+
+
+
MaxNbOfIterations,
+
+
+
+
+
+
MaxxAspectRatio,
+
+
+
+
+
+
Method
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
theObject
object to smooth
+
IDsOfFixedNodes
list of ids of fixed nodes. Note that nodes built on edges and boundary nodes are always fixed.
+
MaxNbOfIterations
maximum number of iterations
+
MaxAspectRatio
varies in range [1.0, inf]
+
Method
is Laplacian(LAPLACIAN_SMOOTH) or Centroidal(CENTROIDAL_SMOOTH)
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.SmoothParametric
+
(
+
+
IDsOfElements,
+
+
+
+
+
+
IDsOfFixedNodes,
+
+
+
+
+
+
MaxNbOfIterations,
+
+
+
+
+
+
MaxAspectRatio,
+
+
+
+
+
+
Method
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
IDsOfElements
list if ids of elements to smooth
+
IDsOfFixedNodes
list of ids of fixed nodes. Note that nodes built on edges and boundary nodes are always fixed.
+
MaxNbOfIterations
maximum number of iterations
+
MaxAspectRatio
varies in range [1.0, inf]
+
Method
is Laplacian(LAPLACIAN_SMOOTH) or Centroidal(CENTROIDAL_SMOOTH)
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.SmoothParametricObject
+
(
+
+
self,
+
+
+
+
+
+
theObject,
+
+
+
+
+
+
IDsOfFixedNodes,
+
+
+
+
+
+
MaxNbOfIterations,
+
+
+
+
+
+
MaxAspectRatio,
+
+
+
+
+
+
Method
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
theObject
object to smooth
+
IDsOfFixedNodes
list of ids of fixed nodes. Note that nodes built on edges and boundary nodes are always fixed.
+
MaxNbOfIterations
maximum number of iterations
+
MaxAspectRatio
varies in range [1.0, inf]
+
Method
is Laplacian(LAPLACIAN_SMOOTH) or Centroidal(CENTROIDAL_SMOOTH)
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.ConvertToQuadratic
+
(
+
+
self,
+
+
+
+
+
+
theForce3d
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.ConvertFromQuadratic
+
(
+
+
self
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.RenumberNodes
+
(
+
+
self
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.RenumberElements
+
(
+
+
self
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.RotationSweep
+
(
+
+
self,
+
+
+
+
+
+
IDsOfElements,
+
+
+
+
+
+
Axix,
+
+
+
+
+
+
AngleInRadians,
+
+
+
+
+
+
NbOfSteps,
+
+
+
+
+
+
Tolerance
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
IDsOfElements
list of ids of elements to sweep
+
Axix
axis of rotation, AxisStruct or line(geom object)
+
AngleInRadians
angle of Rotation
+
NbOfSteps
number of steps
+
Tolerance
tolerance
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.RotationSweepObject
+
(
+
+
self,
+
+
+
+
+
+
theObject,
+
+
+
+
+
+
Axix,
+
+
+
+
+
+
AngleInRadians,
+
+
+
+
+
+
NbOfSteps,
+
+
+
+
+
+
Tolerance
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
theObject
object wich elements should be sweeped
+
Axix
axis of rotation, AxisStruct or line(geom object)
+
AngleInRadians
angle of Rotation
+
NbOfSteps
number of steps
+
Tolerance
tolerance
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.ExtrusionSweep
+
(
+
+
self,
+
+
+
+
+
+
IDsOfElements,
+
+
+
+
+
+
StepVector,
+
+
+
+
+
+
NbOfSteps
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
IDsOfElements
list of elements ids for extrusion
+
StepVector
vector, defining the direction and value of extrusion
+
NbOfSteps
the number of steps
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.AdvancedExtrusion
+
(
+
+
self,
+
+
+
+
+
+
IDsOfElements,
+
+
+
+
+
+
StepVector,
+
+
+
+
+
+
NbOfSteps,
+
+
+
+
+
+
ExtrFlags,
+
+
+
+
+
+
SewTolerance
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
IDsOfElements
is ids of elements
+
StepVector
vector, defining the direction and value of extrusion
+
NbOfSteps
the number of steps
+
ExtrFlags
set flags for performing extrusion
+
SewTolerance
uses for comparing locations of nodes if flag EXTRUSION_FLAG_SEW is set
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.ExtrusionSweepObject
+
(
+
+
self,
+
+
+
+
+
+
theObject,
+
+
+
+
+
+
StepVector,
+
+
+
+
+
+
NbOfSteps
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
theObject
object wich elements should be processed
+
StepVector
vector, defining the direction and value of extrusion
+
NbOfSteps
the number of steps
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.ExtrusionSweepObject1D
+
(
+
+
self,
+
+
+
+
+
+
theObject,
+
+
+
+
+
+
StepVector,
+
+
+
+
+
+
NbOfSteps
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
theObject
object wich elements should be processed
+
StepVector
vector, defining the direction and value of extrusion
+
NbOfSteps
the number of steps
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.ExtrusionSweepObject2D
+
(
+
+
self,
+
+
+
+
+
+
theObject,
+
+
+
+
+
+
StepVector,
+
+
+
+
+
+
NbOfSteps
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
theObject
object wich elements should be processed
+
StepVector
vector, defining the direction and value of extrusion
+
NbOfSteps
the number of steps
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.ExtrusionAlongPath
+
(
+
+
self,
+
+
+
+
+
+
IDsOfElements,
+
+
+
+
+
+
PathMesh,
+
+
+
+
+
+
PathShape,
+
+
+
+
+
+
NodeStart,
+
+
+
+
+
+
HasAngles,
+
+
+
+
+
+
Angles,
+
+
+
+
+
+
HasRefPoint,
+
+
+
+
+
+
RefPoint,
+
+
+
+
+
+
LinearVariation = False
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
IDsOfElements
is ids of elements
+
PathMesh
mesh containing a 1D sub-mesh on the edge, along which proceeds the extrusion
+
PathShape
is shape(edge); as the mesh can be complex, the edge is used to define the sub-mesh for the path
+
NodeStart
the first or the last node on the edge. It is used to define 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 to use base point
+
RefPoint
point around which the shape is rotated(the mass center of the shape by default). User can specify any point as the Base Point and the shape will be rotated with respect to this point.
+
LinearVariation
makes compute rotation angles as linear variation of given Angles along path steps
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.ExtrusionAlongPathObject
+
(
+
+
self,
+
+
+
+
+
+
theObject,
+
+
+
+
+
+
PathMesh,
+
+
+
+
+
+
PathShape,
+
+
+
+
+
+
NodeStart,
+
+
+
+
+
+
HasAngles,
+
+
+
+
+
+
Angles,
+
+
+
+
+
+
HasRefPoint,
+
+
+
+
+
+
RefPoint,
+
+
+
+
+
+
LinearVariation = False
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
IDsOfElements
is ids of elements
+
PathMesh
mesh containing a 1D sub-mesh on the edge, along which proceeds the extrusion
+
PathShape
is shape(edge); as the mesh can be complex, the edge is used to define the sub-mesh for the path
+
NodeStart
the first or the last node on the edge. It is used to define 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 to use base point
+
RefPoint
point around which the shape is rotated(the mass center of the shape by default). User can specify any point as the Base Point and the shape will be rotated with respect to this point.
+
LinearVariation
makes compute rotation angles as linear variation of given Angles along path steps
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.Mirror
+
(
+
+
self,
+
+
+
+
+
+
IDsOfElements,
+
+
+
+
+
+
Mirror,
+
+
+
+
+
+
theMirrorType,
+
+
+
+
+
+
Copy = 0
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 geom object this parameter is unnecessary
+
Copy
allows to copy element(Copy is 1) or to replace with its mirroring(Copy is 0)
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.MirrorObject
+
(
+
+
self,
+
+
+
+
+
+
theObject,
+
+
+
+
+
+
Mirror,
+
+
+
+
+
+
theMirrorType,
+
+
+
+
+
+
Copy = 0
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
theObject
mesh, submesh or group
+
Mirror
is AxisStruct or geom object(point, line, plane)
+
theMirrorType
is POINT, AXIS or PLANE If the Mirror is geom object this parameter is unnecessary
+
Copy
allows to copy element(Copy is 1) or to replace with its mirroring(Copy is 0)
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.Translate
+
(
+
+
self,
+
+
+
+
+
+
IDsOfElements,
+
+
+
+
+
+
Vector,
+
+
+
+
+
+
Copy
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
IDsOfElements
list of elements ids
+
Vector
direction of translation(DirStruct or vector)
+
Copy
allows to copy the translated elements
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.TranslateObject
+
(
+
+
self,
+
+
+
+
+
+
theObject,
+
+
+
+
+
+
Vector,
+
+
+
+
+
+
Copy
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
theObject
object to translate(mesh, submesh, or group)
+
Vector
direction of translation(DirStruct or geom vector)
+
Copy
allows to copy the translated elements
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.Rotate
+
(
+
+
self,
+
+
+
+
+
+
IDsOfElements,
+
+
+
+
+
+
Axis,
+
+
+
+
+
+
AngleInRadians,
+
+
+
+
+
+
Copy
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
IDsOfElements
list of elements ids
+
Axis
axis of rotation(AxisStruct or geom line)
+
AngleInRadians
angle of rotation(in radians)
+
Copy
allows to copy the rotated elements
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.RotateObject
+
(
+
+
self,
+
+
+
+
+
+
theObject,
+
+
+
+
+
+
Axis,
+
+
+
+
+
+
AngleInRadians,
+
+
+
+
+
+
Copy
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
theObject
object to rotate(mesh, submesh, or group)
+
Axis
axis of rotation(AxisStruct or geom line)
+
AngleInRadians
angle of rotation(in radians)
+
Copy
allows to copy the rotated elements
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.FindCoincidentNodes
+
(
+
+
self,
+
+
+
+
+
+
Tolerance
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
Tolerance
tolerance value
+
list
of group of nodes
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.FindCoincidentNodesOnPart
+
(
+
+
self,
+
+
+
+
+
+
SubMeshOrGroup,
+
+
+
+
+
+
Tolerance
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
Tolerance
tolerance value
+
SubMeshOrGroup
SubMesh or Group
+
list
of group of nodes
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.MergeNodes
+
(
+
+
self,
+
+
+
+
+
+
GroupsOfNodes
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
list
of group of nodes
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.FindEqualElements
+
(
+
+
self,
+
+
+
+
+
+
MeshOrSubMeshOrGroup
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
MeshOrSubMeshOrGroup
Mesh or SubMesh, or Group of elements for searching
+
+
+
Returns:
a list of groups of equal elements
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.MergeElements
+
(
+
+
self,
+
+
+
+
+
+
GroupsOfElementsID
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
GroupsOfElementsID
groups of elements for merging
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.MergeEqualElements
+
(
+
+
self
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.SewFreeBorders
+
(
+
+
self,
+
+
+
+
+
+
FirstNodeID1,
+
+
+
+
+
+
SecondNodeID1,
+
+
+
+
+
+
LastNodeID1,
+
+
+
+
+
+
FirstNodeID2,
+
+
+
+
+
+
SecondNodeID2,
+
+
+
+
+
+
LastNodeID2,
+
+
+
+
+
+
CreatePolygons,
+
+
+
+
+
+
CreatePolyedrs
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.SewConformFreeBorders
+
(
+
+
self,
+
+
+
+
+
+
FirstNodeID1,
+
+
+
+
+
+
SecondNodeID1,
+
+
+
+
+
+
LastNodeID1,
+
+
+
+
+
+
FirstNodeID2,
+
+
+
+
+
+
SecondNodeID2
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.SewBorderToSide
+
(
+
+
self,
+
+
+
+
+
+
FirstNodeIDOnFreeBorder,
+
+
+
+
+
+
SecondNodeIDOnFreeBorder,
+
+
+
+
+
+
LastNodeIDOnFreeBorder,
+
+
+
+
+
+
FirstNodeIDOnSide,
+
+
+
+
+
+
LastNodeIDOnSide,
+
+
+
+
+
+
CreatePolygons,
+
+
+
+
+
+
CreatePolyedrs
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
def smesh.Mesh.SewSideElements
+
(
+
+
self,
+
+
+
+
+
+
IDsOfSide1Elements,
+
+
+
+
+
+
IDsOfSide2Elements,
+
+
+
+
+
+
NodeID1OfSide1ToMerge,
+
+
+
+
+
+
NodeID1OfSide2ToMerge,
+
+
+
+
+
+
NodeID2OfSide1ToMerge,
+
+
+
+
+
+
NodeID2OfSide2ToMerge
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Nodes belonging to Side1 are merged with nodes of elements of Side2. Number of elements in theSide1 and in theSide2 must be equal and they should have similar node connectivity. The nodes to merge should belong to sides borders and the first node should be linked to the second.
+
+
+
+
+
+
+
+
+
def smesh.Mesh.ChangeElemNodes
+
(
+
+
self,
+
+
+
+
+
+
ide,
+
+
+
+
+
+
newIDs
+
+
+
+
)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Parameters:
+
+
ide
the element id
+
newIDs
nodes ids
+
+
+
Returns:
If number of nodes is not corresponded to type of element - returns false