Back to index

salome-smesh  6.5.0
Functions
Convert to/from Quadratic Mesh
Modifying meshes
Collaboration diagram for Convert to/from Quadratic Mesh:

Functions

def smeshDC.Mesh.ConvertToQuadratic
 Converts the mesh to quadratic, deletes old elements, replacing them with quadratic with the same id.
def smeshDC.Mesh.ConvertFromQuadratic
 Converts the mesh from quadratic to ordinary, deletes old quadratic elements,
replacing them with ordinary mesh elements with the same id.

Function Documentation

def smeshDC.Mesh.ConvertFromQuadratic (   self,
  theSubMesh = None 
)

Converts the mesh from quadratic to ordinary, deletes old quadratic elements,
replacing them with ordinary mesh elements with the same id.

Parameters:
theSubMesha group or a sub-mesh to convert; WARNING: in this case the mesh can become not conformal

Definition at line 2871 of file smeshDC.py.

02871 
02872     def ConvertFromQuadratic(self, theSubMesh=None):
02873         if theSubMesh:
02874             self.editor.ConvertFromQuadraticObject(theSubMesh)
02875         else:
02876             return self.editor.ConvertFromQuadratic()

def smeshDC.Mesh.ConvertToQuadratic (   self,
  theForce3d,
  theSubMesh = None 
)

Converts the mesh to quadratic, deletes old elements, replacing them with quadratic with the same id.

Parameters:
theForce3dnew node creation method: 0 - the medium node lies at the geometrical entity from which the mesh element is built 1 - the medium node lies at the middle of the line segments connecting start and end node of a mesh element
theSubMesha group or a sub-mesh to convert; WARNING: in this case the mesh can become not conformal

Definition at line 2860 of file smeshDC.py.

02860 
02861     def ConvertToQuadratic(self, theForce3d, theSubMesh=None):
02862         if theSubMesh:
02863             self.editor.ConvertToQuadraticObject(theForce3d,theSubMesh)
02864         else:
02865             self.editor.ConvertToQuadratic(theForce3d)