From ddcd8d1f3c31d9740c5d3ea74ed5057400c0f0df Mon Sep 17 00:00:00 2001 From: gdd Date: Fri, 13 May 2011 12:49:34 +0000 Subject: [PATCH] Add wrappers to GHS3D IDL functions --- src/SMESH_SWIG/smeshDC.py | 81 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 74ad2f65f..9cfdfd06e 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -5522,6 +5522,87 @@ class Mesh_Tetrahedron(Mesh_Algorithm): # Advanced parameter of GHS3D self.Parameters().SetToUseBoundaryRecoveryVersion(toUse) + ## Applies finite-element correction by replacing overconstrained elements where + # it is possible. The process is cutting first the overconstrained edges and + # second the overconstrained facets. This insure that no edges have two boundary + # vertices and that no facets have three boundary vertices. + # @ingroup l3_hypos_ghs3dh + def SetFEMCorrection(self, toUseFem): + # Advanced parameter of GHS3D + self.Parameters().SetFEMCorrection(toUseFem) + + ## To removes initial central point. + # @ingroup l3_hypos_ghs3dh + def SetToRemoveCentralPoint(self, toRemove): + # Advanced parameter of GHS3D + self.Parameters().SetToRemoveCentralPoint(toRemove) + + ## To set an enforced vertex. + # @ingroup l3_hypos_ghs3dh + def SetEnforcedVertex(self, x, y, z, size): + # Advanced parameter of GHS3D + return self.Parameters().SetEnforcedVertex(x, y, z, size) + + ## To set an enforced vertex and add it in the group "groupName". + # Only on meshes w/o geometry + # @ingroup l3_hypos_ghs3dh + def SetEnforcedVertexWithGroup(self, x, y, z, size, groupName): + # Advanced parameter of GHS3D + return self.Parameters().SetEnforcedVertex(x, y, z, size,groupName) + + ## To remove an enforced vertex. + # @ingroup l3_hypos_ghs3dh + def RemoveEnforcedVertex(self, x, y, z): + # Advanced parameter of GHS3D + return self.Parameters().RemoveEnforcedVertex(x, y, z) + + ## To set an enforced vertex given a GEOM vertex, group or compound. + # @ingroup l3_hypos_ghs3dh + def SetEnforcedVertexGeom(self, theVertex, size): + self.AssureGeomPublished( theVertex ) + # Advanced parameter of GHS3D + return self.Parameters().SetEnforcedVertexGeom(theVertex, size) + + ## To set an enforced vertex given a GEOM vertex, group or compound + # and add it in the group "groupName". + # Only on meshes w/o geometry + # @ingroup l3_hypos_ghs3dh + def SetEnforcedVertexGeomWithGroup(self, theVertex, size, groupName): + self.AssureGeomPublished( theVertex ) + # Advanced parameter of GHS3D + return self.Parameters().SetEnforcedVertexGeomWithGroup(theVertex, size,groupName) + + ## To remove an enforced vertex given a GEOM vertex, group or compound. + # @ingroup l3_hypos_ghs3dh + def RemoveEnforcedVertexGeom(self, theVertex): + self.AssureGeomPublished( theVertex ) + # Advanced parameter of GHS3D + return self.Parameters().RemoveEnforcedVertexGeom(theVertex) + + ## To set an enforced mesh. + # @ingroup l3_hypos_ghs3dh + def SetEnforcedMesh(self, theSource, elementType): + # Advanced parameter of GHS3D + return self.Parameters().SetEnforcedMesh(theSource, elementType) + + ## To set an enforced mesh and add the enforced elements in the group "groupName". + # @ingroup l3_hypos_ghs3dh + def SetEnforcedMeshWithGroup(self, theSource, elementType, groupName): + # Advanced parameter of GHS3D + return self.Parameters().SetEnforcedMeshWithGroup(theSource, elementType, groupName) + + ## To set an enforced mesh with given size. + # @ingroup l3_hypos_ghs3dh + def SetEnforcedMeshSize(self, theSource, elementType, size): + # Advanced parameter of GHS3D + return self.Parameters().SetEnforcedMeshSize(theSource, elementType, size) + + ## To set an enforced mesh with given size and add the enforced elements in the group "groupName". + # @ingroup l3_hypos_ghs3dh + def SetEnforcedMeshSizeWithGroup(self, theSource, elementType, size, groupName): + # Advanced parameter of GHS3D + return self.Parameters().SetEnforcedMeshSizeWithGroup(theSource, elementType, size, groupName) + ## Sets command line option as text. # @ingroup l3_hypos_ghs3dh def SetTextOption(self, option): -- 2.39.2