mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 10:37:28 +05:00
0022172: [CEA 790] create the groups corresponding to domains
Allow calling Create() and Assign() with geom == None
This commit is contained in:
parent
2c17372e2f
commit
b4fdb7ebde
@ -180,7 +180,7 @@ class Mesh_Algorithm:
|
|||||||
|
|
||||||
## Private method.
|
## Private method.
|
||||||
def Create(self, mesh, geom, hypo, so="libStdMeshersEngine.so"):
|
def Create(self, mesh, geom, hypo, so="libStdMeshersEngine.so"):
|
||||||
if geom is None:
|
if geom is None and mesh.mesh.HasShapeToMesh():
|
||||||
raise RuntimeError, "Attemp to create " + hypo + " algoritm on None shape"
|
raise RuntimeError, "Attemp to create " + hypo + " algoritm on None shape"
|
||||||
algo = self.FindAlgorithm(hypo, mesh.smeshpyD)
|
algo = self.FindAlgorithm(hypo, mesh.smeshpyD)
|
||||||
if algo is None:
|
if algo is None:
|
||||||
@ -192,7 +192,7 @@ class Mesh_Algorithm:
|
|||||||
## Private method
|
## Private method
|
||||||
def Assign(self, algo, mesh, geom):
|
def Assign(self, algo, mesh, geom):
|
||||||
from salome.smesh.smeshBuilder import AssureGeomPublished, TreatHypoStatus, GetName
|
from salome.smesh.smeshBuilder import AssureGeomPublished, TreatHypoStatus, GetName
|
||||||
if geom is None:
|
if geom is None and mesh.mesh.HasShapeToMesh():
|
||||||
raise RuntimeError, "Attemp to create " + algo + " algoritm on None shape"
|
raise RuntimeError, "Attemp to create " + algo + " algoritm on None shape"
|
||||||
self.mesh = mesh
|
self.mesh = mesh
|
||||||
name = ""
|
name = ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user