FEM: use python base constraint class, shell thickness

This commit is contained in:
Bernd Hahnebach
2020-03-03 21:04:31 +01:00
parent 0aad1a0164
commit a00dddffe7
2 changed files with 17 additions and 64 deletions

View File

@@ -27,10 +27,17 @@ __url__ = "https://www.freecadweb.org"
# \ingroup FEM
# \brief FreeCAD FEM element geometry 2D object
from . import FemConstraint
class _FemElementGeometry2D:
class _FemElementGeometry2D(FemConstraint.Proxy):
"The FemElementGeometry2D object"
Type = "Fem::ElementGeometry2D"
def __init__(self, obj):
super(_FemElementGeometry2D, self).__init__(obj)
obj.addProperty(
"App::PropertyLength",
"Thickness",
@@ -43,8 +50,3 @@ class _FemElementGeometry2D:
"ShellThickness",
"List of shell thickness shapes"
)
obj.Proxy = self
self.Type = "Fem::ElementGeometry2D"
def execute(self, obj):
return