
Public Member Functions | |
| def | DumpPython |
| Dump component to the Python script This method overrides IDL function to allow default values for the parameters. | |
| 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 | CreateMeshesFromSTL |
| Creates a Mesh object importing data from the given STL 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 | GetFunctor |
| Creates a numerical functor by its type. | |
| def | CreateHypothesis |
| Creates hypothesis. | |
| def | GetMeshInfo |
| Gets the mesh stattistic. | |
| 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) | |
Data Fields | |
| geompyD | |
Definition at line 516 of file smeshDC.py.
| def smeshDC.smeshDC.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 |
Definition at line 695 of file smeshDC.py.
00697 : 00698 mergeTolerance,Parameters = geompyDC.ParseParameters(mergeTolerance) 00699 for i,m in enumerate(meshes): 00700 if isinstance(m, Mesh): 00701 meshes[i] = m.GetMesh() 00702 if allGroups: 00703 aSmeshMesh = SMESH._objref_SMESH_Gen.ConcatenateWithGroups( 00704 self,meshes,uniteIdenticalGroups,mergeNodesAndElements,mergeTolerance) 00705 else: 00706 aSmeshMesh = SMESH._objref_SMESH_Gen.Concatenate( 00707 self,meshes,uniteIdenticalGroups,mergeNodesAndElements,mergeTolerance) 00708 aSmeshMesh.SetParameters(Parameters) 00709 aMesh = Mesh(self, self.geompyD, aSmeshMesh) 00710 return aMesh
| def smeshDC.smeshDC.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 |
Definition at line 719 of file smeshDC.py.
| def smeshDC.smeshDC.CreateHypothesis | ( | self, | |
| theHType, | |||
theLibName = "libStdMeshersEngine.so" |
|||
| ) |
Creates hypothesis.
| theHType | mesh hypothesis type (string) |
| theLibName | mesh plug-in library name |
Definition at line 959 of file smeshDC.py.
| def smeshDC.smeshDC.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.
Definition at line 520 of file smeshDC.py.
Definition at line 645 of file smeshDC.py.