Skip to content

Commit

Permalink
Update the PR : implement example in a better way
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelNale committed Sep 18, 2023
1 parent a0c2b33 commit 2c4d605
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/12-fluids/03-fluids_isosurface.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@

vec_iso_values = [-153.6, -100.0, -50.0, 50.0, 100.0, 150.0, 200.0, 300.0, 361.8]

iso_surfaces_meshes = dpf.operators.mesh.iso_surfaces(field=P_S[0], mesh=whole_mesh, slice_surfaces=True,
vector_iso_values=vec_iso_values).outputs.meshes()
iso_surfaces_op = dpf.operators.mesh.iso_surfaces(field=P_S[0], mesh=whole_mesh, slice_surfaces=True,
vector_iso_values=vec_iso_values)

iso_surfaces_fields = dpf.operators.mesh.iso_surfaces(field=P_S[0], mesh=whole_mesh, slice_surfaces=True,
vector_iso_values=vec_iso_values).outputs.fields_container()
iso_surfaces_meshes = iso_surfaces_op.outputs.meshes()

iso_surfaces_fields = iso_surfaces_op.outputs.fields_container()

for i in range(len(iso_surfaces_fields)):
pl.add_field(
Expand Down

0 comments on commit 2c4d605

Please sign in to comment.