# Over-constrained volumes from smesh import * SetCurrentStudy(salome.myStudy) mesh = Mesh() volumeFilter = GetFilter(VOLUME,FT_OverConstrainedVolume) # make volumes by extrusion of one face n1 = mesh.AddNode(0,0,0) n2 = mesh.AddNode(10,0,0) edge = mesh.AddEdge([n1,n2]) mesh.ExtrusionSweep([edge], MakeDirStruct(0,7,0), 1) mesh.ExtrusionSweep( mesh.GetElementsByType(FACE), MakeDirStruct(0,0,5), 7) assert( 2 == len( mesh.GetIdsFromFilter( volumeFilter )))