Changes between Version 2 and Version 3 of cypress/Example VTK-python


Ignore:
Timestamp:
08/18/25 17:42:14 (2 days ago)
Author:
fuji
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • cypress/Example VTK-python

    v2 v3  
    4343                vel = np.array([float(u), float(v), float(w)])
    4444                scalArray.SetValue(offset,float(p))
    45                 velArray.SetTupleValue(offset,vel)
     45                velArray.SetTuple(offset,vel)
    4646
    4747    sGrid.SetPoints(nodes)
     
    5151#
    5252writer = vtk.vtkXMLStructuredGridWriter()
    53 writer.SetInput(sGrid)
     53writer.SetInputData(sGrid)
    5454
    5555writer.SetFileName("officeFlow.vts")