Functions | |
def | DegreesToRadians |
Converts an angle from degrees to radians. | |
def | ParseParameters |
Return list of variable values from salome notebook. | |
def | ParseAngles |
def | __initPointStruct |
def | __initAxisStruct |
def | IsEqual |
def | GetName |
Gets object name. | |
def | TreatHypoStatus |
Prints error message if a hypothesis was not assigned. | |
def | AssureGeomPublished |
Private method. | |
def | FirstVertexOnCurve |
publish | |
def | init_smesh |
Sets the current study and Geometry component. | |
def | GetPointStruct |
Gets PointStruct from vertex. | |
def | GetDirStruct |
Gets DirStruct from vector. | |
def | MakeDirStruct |
Makes DirStruct from a triplet. | |
def | GetAxisStruct |
Get AxisStruct from object. | |
def | SetName |
Sets the given name to the object. | |
def | SetEmbeddedMode |
Sets the current mode. | |
def | IsEmbeddedMode |
Gets the current mode. | |
def | SetCurrentStudy |
Sets the current study. | |
def | GetCurrentStudy |
Gets the current study. | |
def | GetSubShapesId |
From SMESH_Gen interface. | |
def | SetBoundaryBoxSegmentation |
Sets number of segments per diagonal of boundary box of geometry by which default segment length of appropriate 1D hypotheses is defined. | |
def | MeshDimension |
Returns the mesh dimension depending on the dimension of the underlying shape. | |
def | GetLog |
Returns the log of nodes and elements added or removed since the previous clear of the log. | |
def | ClearLog |
Clears the log of nodes and elements added or removed since the previous clear. | |
def | SetAutoColor |
Toggles auto color mode on the object. | |
def | GetAutoColor |
Gets flag of object auto color mode. | |
def | GetId |
Gets the internal ID. | |
def | GetStudyId |
Get the study Id. | |
def | HasDuplicatedGroupNamesMED |
Checks the group names for duplications. | |
def | GetIDSource |
Wrap a list of IDs of elements or nodes into SMESH_IDSource which can be passed as argument to accepting mesh, group or sub-mesh. | |
def | GetMEDMesh |
Gets MED Mesh. | |
def | SplitQuadsNearTriangularFacets |
Splits quadrangle faces near triangular facets of volumes. | |
def | SplitHexaToTetras |
Splits hexahedrons into tetrahedrons. | |
def | SplitHexaToPrisms |
Split hexahedrons into prisms. | |
def | GetLastCreatedNodes |
If during the last operation of MeshEditor some nodes were created, this method returns the list of their IDs, if new nodes were not created - returns empty list. | |
def | GetLastCreatedElems |
If during the last operation of MeshEditor some elements were created this method returns the list of their IDs, if new elements were not created - returns empty list. |
Variables | |
POINT = SMESH_MeshEditor.POINT | |
AXIS = SMESH_MeshEditor.AXIS | |
PLANE = SMESH_MeshEditor.PLANE | |
LAPLACIAN_SMOOTH = SMESH_MeshEditor.LAPLACIAN_SMOOTH | |
CENTROIDAL_SMOOTH = SMESH_MeshEditor.CENTROIDAL_SMOOTH | |
int | PrecisionConfusion = 1 |
notebook = salome_notebook.notebook | |
string | var_separator = ":" |
string | NO_NAME = "NoName" |
tuple | studyID = mesh.smeshpyD.GetCurrentStudy() |
set the study | |
tuple | name = mesh.geompyD.SubShapeName(geom, mesh.geom) |
get a name |
def smesh.DegreesToRadians | ( | AngleInDegrees | ) |
Converts an angle from degrees to radians.
def smesh.ParseParameters | ( | args | ) |
Return list of variable values from salome notebook.
The last argument, if is callable, is used to modify values got from notebook
def smesh.ParseAngles | ( | args | ) |
References smesh.ParseParameters().
|
private |
References smesh.ParseParameters().
|
private |
References smesh.ParseParameters().
def smesh.IsEqual | ( | val1, | |
val2, | |||
tol = PrecisionConfusion |
|||
) |
def smesh.GetName | ( | obj | ) |
Gets object name.
def smesh.TreatHypoStatus | ( | status, | |
hypName, | |||
geomName, | |||
isAlgo | |||
) |
Prints error message if a hypothesis was not assigned.
def smesh.AssureGeomPublished | ( | mesh, | |
geom, | |||
name = '' |
|||
) |
Private method.
Add geom (sub-shape of the main shape) into the study if not yet there
def smesh.FirstVertexOnCurve | ( | edge | ) |
publish
Return the first vertex of a geomertical edge by ignoring orienation
def smesh.init_smesh | ( | self, | |
theStudy, | |||
geompyD | |||
) |
Sets the current study and Geometry component.
def smesh.GetPointStruct | ( | self, | |
theVertex | |||
) |
Gets PointStruct from vertex.
theVertex | a GEOM object(vertex) |
def smesh.GetDirStruct | ( | self, | |
theVector | |||
) |
Gets DirStruct from vector.
theVector | a GEOM object(vector) |
def smesh.MakeDirStruct | ( | self, | |
x, | |||
y, | |||
z | |||
) |
Makes DirStruct from a triplet.
x,y,z | vector components |
def smesh.GetAxisStruct | ( | self, | |
theObj | |||
) |
Get AxisStruct from object.
theObj | a GEOM object (line or plane) |
def smesh.SetName | ( | self, | |
obj, | |||
name | |||
) |
Sets the given name to the object.
obj | the object to rename |
name | a new object name |
def smesh.SetEmbeddedMode | ( | self, | |
theMode | |||
) |
Sets the current mode.
def smesh.IsEmbeddedMode | ( | self | ) |
Gets the current mode.
def smesh.SetCurrentStudy | ( | self, | |
theStudy, | |||
geompyD = None |
|||
) |
Sets the current study.
def smesh.GetCurrentStudy | ( | self | ) |
Gets the current study.
def smesh.GetSubShapesId | ( | self, | |
theMainObject, | |||
theListOfSubObjects | |||
) |
From SMESH_Gen interface.
def smesh.SetBoundaryBoxSegmentation | ( | self, | |
nbSegments | |||
) |
Sets number of segments per diagonal of boundary box of geometry by which default segment length of appropriate 1D hypotheses is defined.
Default value is 10
def MeshDimension | ( | self | ) |
Returns the mesh dimension depending on the dimension of the underlying shape.
References Mesh.geom.
def GetLog | ( | self, | |
clearAfterGet | |||
) |
Returns the log of nodes and elements added or removed since the previous clear of the log.
clearAfterGet | log is emptied after Get (safe if concurrents access) |
def ClearLog | ( | self | ) |
Clears the log of nodes and elements added or removed since the previous clear.
Must be used immediately after GetLog if clearAfterGet is false.
def SetAutoColor | ( | self, | |
theAutoColor | |||
) |
Toggles auto color mode on the object.
theAutoColor | the flag which toggles auto color mode. |
def GetAutoColor | ( | self | ) |
Gets flag of object auto color mode.
def GetId | ( | self | ) |
Gets the internal ID.
def GetStudyId | ( | self | ) |
Get the study Id.
def HasDuplicatedGroupNamesMED | ( | self | ) |
Checks the group names for duplications.
Consider the maximum group name length stored in MED file.
def GetIDSource | ( | self, | |
ids, | |||
elemType | |||
) |
Wrap a list of IDs of elements or nodes into SMESH_IDSource which can be passed as argument to accepting mesh, group or sub-mesh.
References Mesh.GetMeshEditor().
def GetMEDMesh | ( | self | ) |
Gets MED Mesh.
def SplitQuadsNearTriangularFacets | ( | self | ) |
Splits quadrangle faces near triangular facets of volumes.
References Mesh.GetElementsByType(), Mesh.GetElementType(), Mesh.GetElemNbNodes(), Mesh.GetNodeInverseElements(), and Mesh.SplitQuad().
def SplitHexaToTetras | ( | self, | |
theObject, | |||
theNode000, | |||
theNode001 | |||
) |
Splits hexahedrons into tetrahedrons.
This operation uses pattern mapping functionality for splitting.
theObject | the object from which the list of hexahedrons is taken; this is mesh, submesh or group. |
theNode000,theNode001 | within the range [0,7]; gives the orientation of the pattern relatively each hexahedron: the (0,0,0) key-point of the 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 the used pattern corresponds to a non-split corner. |
References Mesh.mesh, and Mesh.SplitQuadsNearTriangularFacets().
def SplitHexaToPrisms | ( | self, | |
theObject, | |||
theNode000, | |||
theNode001 | |||
) |
Split hexahedrons into prisms.
Uses the pattern mapping functionality for splitting.
theObject | the object (mesh, submesh or group) from where the list of hexahedrons is taken; |
theNode000,theNode001 | (within the range [0,7]) gives the orientation of the pattern relatively each hexahedron: keypoint (0,0,0) of the pattern will be mapped into the theNode000-th node of each volume, keypoint (0,0,1) will be mapped into the theNode001-th node of each volume. Edge (0,0,0)-(0,0,1) of used pattern connects two not split corners. |
References Mesh.mesh, Mesh.Smooth(), and Mesh.SplitQuadsNearTriangularFacets().
def GetLastCreatedNodes | ( | self | ) |
If during the last operation of MeshEditor some nodes were created, this method returns the list of their IDs,
if new nodes were not created - returns empty list.
def GetLastCreatedElems | ( | self | ) |
If during the last operation of MeshEditor some elements were created this method returns the list of their IDs,
if new elements were not created - returns empty list.
POINT = SMESH_MeshEditor.POINT |
AXIS = SMESH_MeshEditor.AXIS |
PLANE = SMESH_MeshEditor.PLANE |
LAPLACIAN_SMOOTH = SMESH_MeshEditor.LAPLACIAN_SMOOTH |
CENTROIDAL_SMOOTH = SMESH_MeshEditor.CENTROIDAL_SMOOTH |
int PrecisionConfusion = 1 |
notebook = salome_notebook.notebook |
string var_separator = ":" |
string NO_NAME = "NoName" |
tuple studyID = mesh.smeshpyD.GetCurrentStudy() |
set the study
string name = mesh.geompyD.SubShapeName(geom, mesh.geom) |
get a name