|
Functions | |
| def | smeshDC::Mesh.DeleteDiag |
| Replaces two neighbour triangles sharing Node1-Node2 link with a quadrangle built on the same 4 nodes. | |
| def | smeshDC::Mesh.TriToQuad |
| Fuses the neighbouring triangles into quadrangles. | |
| def | smeshDC::Mesh.TriToQuadObject |
| Fuses the neighbouring triangles of the object into quadrangles. | |
| def smeshDC.Mesh.DeleteDiag | ( | self, | |
| NodeID1, | |||
| NodeID2 | |||
| ) | [inherited] |
Replaces two neighbour triangles sharing Node1-Node2 link with a quadrangle built on the same 4 nodes.
| NodeID1 | the ID of the first node |
| NodeID2 | the ID of the second node |
Definition at line 2734 of file smeshDC.py.
| def smeshDC.Mesh.TriToQuad | ( | self, | |
| IDsOfElements, | |||
| theCriterion, | |||
| MaxAngle | |||
| ) | [inherited] |
Fuses the neighbouring triangles into quadrangles.
| IDsOfElements | The triangles to be fused, |
| theCriterion | is FT_...; used to choose a neighbour to fuse with. |
| MaxAngle | is the maximum angle between element normals at which the fusion is still performed; theMaxAngle is mesured in radians. Also it could be a name of variable which defines angle in degrees. |
Definition at line 2763 of file smeshDC.py.
02764 : 02765 flag = False 02766 if isinstance(MaxAngle,str): 02767 flag = True 02768 MaxAngle,Parameters = geompyDC.ParseParameters(MaxAngle) 02769 if flag: 02770 MaxAngle = DegreesToRadians(MaxAngle) 02771 if IDsOfElements == []: 02772 IDsOfElements = self.GetElementsId() 02773 self.mesh.SetParameters(Parameters) 02774 Functor = 0 02775 if ( isinstance( theCriterion, SMESH._objref_NumericalFunctor ) ): 02776 Functor = theCriterion 02777 else: 02778 Functor = self.smeshpyD.GetFunctor(theCriterion) 02779 return self.editor.TriToQuad(IDsOfElements, Functor, MaxAngle)
| def smeshDC.Mesh.TriToQuadObject | ( | self, | |
| theObject, | |||
| theCriterion, | |||
| MaxAngle | |||
| ) | [inherited] |
Fuses the neighbouring triangles of the object into quadrangles.
| theObject | is mesh, submesh or group |
| theCriterion | is FT_...; used to choose a neighbour to fuse with. |
| MaxAngle | a max angle between element normals at which the fusion is still performed; theMaxAngle is mesured in radians. |
Definition at line 2787 of file smeshDC.py.