3 \page tui_iso_surf_page Iso Surfaces
5 Create <b>Iso Surfaces</b> presentation on a field of the imported MED file:
15 # The directory containing MED files
16 datadir = os.getenv("DATA_DIR")
19 myVisu = visu_gui.myVisu
22 medFile = os.path.join(datadir,"MedFiles","fra.med")
23 myResult = myVisu.ImportFile(medFile)
25 # Create iso surfaces for the first timestamp of 'VITESSE' field
26 meshName = 'LE VOLUME'
27 fieldEntity = VISU.NODE
29 myIsoSurfaces = myVisu.IsoSurfacesOnField(myResult, meshName, fieldEntity, fieldName, 1)
31 # Set the number of surfaces
32 myIsoSurfaces.SetNbSurfaces(12)
34 # Show two value labels per surface
35 myIsoSurfaces.ShowLabels(True, 2)
37 # Update the object browser
38 salome.sg.updateObjBrowser(1)
40 # Display the newly created iso surfaces
41 myViewManager = myVisu.GetViewManager()
42 myView = myViewManager.Create3DView()
44 myView.DisplayOnly(myIsoSurfaces)
48 <br>Please, see \ref VISU.IsoSurfaces "IsoSurfaces interface reference documentation"