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.
+
-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 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 geom parameter is not sets, this algorithm is global. Otherwise, this algorithm define a submesh based on geom subshape.
Parameters:
-
-
geom
If defined, subshape to be meshed
-
-
-
-
-
-
-
-
-
-
-
def smesh.Mesh.Quadrangle
-
(
-
-
self,
-
-
-
-
-
-
geom = 0
-
-
-
-
)
-
-
+
+
+
+
+
+
+
def
+smesh.Mesh.GetShape
+
(
+
+
self
+
+
)
+
+
+
+
-
-
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
Returns:
+
GEOM_Object
+
+
+
+
+
+
-If the optional geom parameter is not sets, this algorithm is global. Otherwise, this algorithm define a submesh based on geom subshape.
Parameters:
-
-
geom
If defined, subshape to be meshed
-
-
-
-
-
-
-
-
-
-
-
def smesh.Mesh.Tetrahedron
-
(
-
-
self,
-
-
-
-
-
-
algo,
-
-
-
-
-
-
geom = 0
-
-
-
-
)
-
-
+
+
+
+
+
+
+
def
+smesh.Mesh.SetShape
+
(
+
+
self,
+
+
+
+
+
+
+
+
geom
+
+
+
+
+
)
+
+
+
+
-
-
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
Parameters:
+
+
+
+
+
+
+
geom
+
shape to be meshed(GEOM_Object)
+
+
+
+
+
+
+
+
+
+
-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.
-needs no discrete boundary). If the optional geom parameter is not sets, this algorithm is global. Otherwise, this algorithm defines a submesh based on geom subshape.
Parameters:
-
-
is3D
If 0 then algorithm is 2D, otherwise 3D
-
geom
If defined, subshape to be meshed
-
-
-
-
-
-
-
-
-
-
-
def smesh.Mesh.Compute
-
(
-
-
self
-
)
-
-
+
+
+
+
+
+
+
def
+smesh.Mesh.GetGeometryByMeshElement
+
(
+
+
self,
+
+
+
+
+
+
+
+
theElementID,
+
+
+
+
+
+
+
+
+
theGeomName
+
+
+
+
+
)
+
+
+
+
-
-
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
The returned geometrical object, if not nil, is either found
+in the study or is published by this method with the given name
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
Define "QuadranglePreference" hypothesis, forcing construction of quadrangles if the number of nodes on opposite edges is not the same in the case where the global number of nodes on edges is even.
Define "QuadranglePreference" hypothesis,
+forcing construction of quadrangles if the number of nodes on opposite
+edges is not the same in the case where the global number of nodes on
+edges is even.
+