FEM: mesh region, change type
This commit is contained in:
@@ -220,7 +220,7 @@ class _ViewProviderFemMeshGmsh:
|
||||
and dragged_object.Proxy.Type == "Fem::MeshGroup":
|
||||
return True
|
||||
elif hasattr(dragged_object, "Proxy") \
|
||||
and dragged_object.Proxy.Type == "Fem::FemMeshRegion":
|
||||
and dragged_object.Proxy.Type == "Fem::MeshRegion":
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
@@ -238,7 +238,7 @@ class _ViewProviderFemMeshGmsh:
|
||||
objs = self.Object.MeshGroupList
|
||||
objs.remove(dragged_object)
|
||||
self.Object.MeshGroupList = objs
|
||||
elif hasattr(dragged_object, "Proxy") and dragged_object.Proxy.Type == "Fem::FemMeshRegion":
|
||||
elif hasattr(dragged_object, "Proxy") and dragged_object.Proxy.Type == "Fem::MeshRegion":
|
||||
objs = self.Object.MeshRegionList
|
||||
objs.remove(dragged_object)
|
||||
self.Object.MeshRegionList = objs
|
||||
@@ -255,7 +255,7 @@ class _ViewProviderFemMeshGmsh:
|
||||
objs.append(incoming_object)
|
||||
self.Object.MeshGroupList = objs
|
||||
elif hasattr(incoming_object, "Proxy") \
|
||||
and incoming_object.Proxy.Type == "Fem::FemMeshRegion":
|
||||
and incoming_object.Proxy.Type == "Fem::MeshRegion":
|
||||
objs = self.Object.MeshRegionList
|
||||
objs.append(incoming_object)
|
||||
self.Object.MeshRegionList = objs
|
||||
|
||||
@@ -37,7 +37,7 @@ class _FemMeshRegion(FemConstraint.Proxy):
|
||||
The FemMeshRegion object
|
||||
"""
|
||||
|
||||
Type = "Fem::FemMeshRegion"
|
||||
Type = "Fem::MeshRegion"
|
||||
|
||||
def __init__(self, obj):
|
||||
super(_FemMeshRegion, self).__init__(obj)
|
||||
|
||||
@@ -313,7 +313,7 @@ class TestObjectType(unittest.TestCase):
|
||||
type_of_obj(ObjectsFem.makeMeshGroup(doc, mesh))
|
||||
)
|
||||
self.assertEqual(
|
||||
"Fem::FemMeshRegion",
|
||||
"Fem::MeshRegion",
|
||||
type_of_obj(ObjectsFem.makeMeshRegion(doc, mesh))
|
||||
)
|
||||
self.assertEqual(
|
||||
@@ -513,7 +513,7 @@ class TestObjectType(unittest.TestCase):
|
||||
))
|
||||
self.assertTrue(is_of_type(
|
||||
ObjectsFem.makeMeshRegion(doc, mesh),
|
||||
"Fem::FemMeshRegion"
|
||||
"Fem::MeshRegion"
|
||||
))
|
||||
self.assertTrue(is_of_type(
|
||||
ObjectsFem.makeMeshNetgen(doc),
|
||||
@@ -1070,7 +1070,7 @@ class TestObjectType(unittest.TestCase):
|
||||
))
|
||||
self.assertTrue(is_derived_from(
|
||||
mesh_region,
|
||||
"Fem::FemMeshRegion"
|
||||
"Fem::MeshRegion"
|
||||
))
|
||||
|
||||
# FemMeshShapeNetgenObject
|
||||
|
||||
Reference in New Issue
Block a user