Data Structures | |
class | Mesh |
This class allows defining and managing a mesh. More... | |
class | Mesh_Algorithm |
The mother class to define algorithm, it is not recommended to use it directly. More... | |
class | Pattern |
class | algoCreator |
Private class used to bind methods creating algorithms to the class Mesh. More... | |
class | hypMethodWrapper |
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 | DumpPython |
Dump component to the Python script This method overrides IDL function to allow default values for the parameters. | |
def | SetDumpPythonHistorical |
Set mode of DumpPython(), historical or snapshot. | |
def | init_smesh |
Sets the current study and Geometry component. | |
def | Mesh |
Creates an empty Mesh. | |
def | EnumToLong |
Returns a long value from enumeration Should be used for SMESH.FunctorType enumeration. | |
def | ColorToString |
Returns a string representation of the color. | |
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 | CreateMeshesFromUNV |
Creates a Mesh object importing data from the given UNV file. | |
def | CreateMeshesFromMED |
Creates a Mesh object(s) importing data from the given MED file. | |
def | CreateMeshesFromSAUV |
Creates a Mesh object(s) importing data from the given SAUV file. | |
def | CreateMeshesFromSTL |
Creates a Mesh object importing data from the given STL file. | |
def | CreateMeshesFromCGNS |
Creates Mesh objects importing data from the given CGNS file. | |
def | Concatenate |
Concatenate the given meshes into one mesh. | |
def | CopyMesh |
Create a mesh by copying a part of another mesh. | |
def | GetSubShapesId |
From SMESH_Gen interface. | |
def | GetPattern |
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 | GetEmptyCriterion |
Creates an empty criterion. | |
def | GetCriterion |
Creates a criterion by the given parameters Criterion structures allow to define complex filters by combining them with logical operations (AND / OR) (see example below) | |
def | GetFilter |
Creates a filter with the given parameters. | |
def | GetFilterFromCriteria |
Creates a filter from criteria. | |
def | GetFunctor |
Creates a numerical functor by its type. | |
def | CreateHypothesis |
Creates hypothesis. | |
def | GetMeshInfo |
Gets the mesh statistic. | |
def | MinDistance |
Get minimum distance between two objects. | |
def | GetMinDistance |
Get measure structure specifying minimum distance data between two objects. | |
def | BoundingBox |
Get bounding box of the specified object(s) | |
def | GetBoundingBox |
Get measure structure specifying bounding box data of the specified object(s) |
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 | |
geompyD |
def smesh.DumpPython | ( | self, | |
theStudy, | |||
theIsPublished = True , |
|||
theIsMultiFile = True |
|||
) |
Dump component to the Python script This method overrides IDL function to allow default values for the parameters.
def smesh.SetDumpPythonHistorical | ( | self, | |
isHistorical | |||
) |
Set mode of DumpPython(), historical or snapshot.
In the historical mode, the Python Dump script includes all commands performed by SMESH engine. In the snapshot mode, commands relating to objects removed from the Study are excluded from the script as well as commands not influencing the current state of meshes
def smesh.Concatenate | ( | self, | |
meshes, | |||
uniteIdenticalGroups, | |||
mergeNodesAndElements = False , |
|||
mergeTolerance = 1e-5 , |
|||
allGroups = False |
|||
) |
Concatenate the given meshes into one mesh.
meshes | the meshes to combine into one mesh |
uniteIdenticalGroups | if true, groups with same names are united, else they are renamed |
mergeNodesAndElements | if true, equal nodes and elements aremerged |
mergeTolerance | tolerance for merging nodes |
allGroups | forces creation of groups of all elements |
References ParseParameters().
def smesh.CopyMesh | ( | self, | |
meshPart, | |||
meshName, | |||
toCopyGroups = False , |
|||
toKeepIDs = False |
|||
) |
Create a mesh by copying a part of another mesh.
meshPart | a part of mesh to copy, either a Mesh, a sub-mesh or a group; to copy nodes or elements not contained in any mesh object, pass result of Mesh.GetIDSource( list_of_ids, type ) as meshPart |
meshName | a name of the new mesh |
toCopyGroups | to create in the new mesh groups the copied elements belongs to |
toKeepIDs | to preserve IDs of the copied elements or not |
def smesh.CreateHypothesis | ( | self, | |
theHType, | |||
theLibName = "libStdMeshersEngine.so" |
|||
) |
Creates hypothesis.
theHType | mesh hypothesis type (string) |
theLibName | mesh plug-in library name |
geompyD |