FEM: mesh group, change type
This commit is contained in:
@@ -217,7 +217,7 @@ class _ViewProviderFemMeshGmsh:
|
||||
and dragged_object.Proxy.Type == "Fem::MeshBoundaryLayer":
|
||||
return True
|
||||
elif hasattr(dragged_object, "Proxy") \
|
||||
and dragged_object.Proxy.Type == "Fem::FemMeshGroup":
|
||||
and dragged_object.Proxy.Type == "Fem::MeshGroup":
|
||||
return True
|
||||
elif hasattr(dragged_object, "Proxy") \
|
||||
and dragged_object.Proxy.Type == "Fem::FemMeshRegion":
|
||||
@@ -234,7 +234,7 @@ class _ViewProviderFemMeshGmsh:
|
||||
objs = self.Object.MeshBoundaryLayerList
|
||||
objs.remove(dragged_object)
|
||||
self.Object.MeshBoundaryLayerList = objs
|
||||
elif hasattr(dragged_object, "Proxy") and dragged_object.Proxy.Type == "Fem::FemMeshGroup":
|
||||
elif hasattr(dragged_object, "Proxy") and dragged_object.Proxy.Type == "Fem::MeshGroup":
|
||||
objs = self.Object.MeshGroupList
|
||||
objs.remove(dragged_object)
|
||||
self.Object.MeshGroupList = objs
|
||||
@@ -250,7 +250,7 @@ class _ViewProviderFemMeshGmsh:
|
||||
objs.append(incoming_object)
|
||||
self.Object.MeshBoundaryLayerList = objs
|
||||
elif hasattr(incoming_object, "Proxy") \
|
||||
and incoming_object.Proxy.Type == "Fem::FemMeshGroup":
|
||||
and incoming_object.Proxy.Type == "Fem::MeshGroup":
|
||||
objs = self.Object.MeshGroupList
|
||||
objs.append(incoming_object)
|
||||
self.Object.MeshGroupList = objs
|
||||
|
||||
@@ -37,7 +37,7 @@ class _FemMeshGroup(FemConstraint.Proxy):
|
||||
The FemMeshGroup object
|
||||
"""
|
||||
|
||||
Type = "Fem::FemMeshGroup"
|
||||
Type = "Fem::MeshGroup"
|
||||
|
||||
def __init__(self, obj):
|
||||
super(_FemMeshGroup, self).__init__(obj)
|
||||
|
||||
@@ -309,7 +309,7 @@ class TestObjectType(unittest.TestCase):
|
||||
type_of_obj(ObjectsFem.makeMeshBoundaryLayer(doc, mesh))
|
||||
)
|
||||
self.assertEqual(
|
||||
"Fem::FemMeshGroup",
|
||||
"Fem::MeshGroup",
|
||||
type_of_obj(ObjectsFem.makeMeshGroup(doc, mesh))
|
||||
)
|
||||
self.assertEqual(
|
||||
@@ -509,7 +509,7 @@ class TestObjectType(unittest.TestCase):
|
||||
))
|
||||
self.assertTrue(is_of_type(
|
||||
ObjectsFem.makeMeshGroup(doc, mesh),
|
||||
"Fem::FemMeshGroup"
|
||||
"Fem::MeshGroup"
|
||||
))
|
||||
self.assertTrue(is_of_type(
|
||||
ObjectsFem.makeMeshRegion(doc, mesh),
|
||||
@@ -1055,7 +1055,7 @@ class TestObjectType(unittest.TestCase):
|
||||
))
|
||||
self.assertTrue(is_derived_from(
|
||||
mesh_group,
|
||||
"Fem::FemMeshGroup"
|
||||
"Fem::MeshGroup"
|
||||
))
|
||||
|
||||
# FemMeshRegion
|
||||
|
||||
Reference in New Issue
Block a user