InteractiveComputerGraphics / SPlisHSPlasH

SPlisHSPlasH is an open-source library for the physically-based simulation of fluids.

Home Page:https://splishsplash.physics-simulation.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'pysplishsplash.Exec.SimulatorBase' object has no attribute 'VTK_EXPORT'

chunleili opened this issue · comments

Hi
I want to run the following code in the documentation. It intends to run the python binding with VTK output.
image

import pysplishsplash as sph
from pysplishsplash.Extras import Scenes
import os

def main():
    base = sph.Exec.SimulatorBase()
    output_dir = os.path.abspath("where/you/want/the/data")
    base.init(useGui=False, outputDir=output_dir, sceneFile=Scenes.DoubleDamBreak)
    base.setValueFloat(base.STOP_AT, 20.0) # Important to have the dot to denote a float
    base.setValueBool(base.VTK_EXPORT, True)
    # Uncomment the next line to set the output FPS value (must be float)
    # base.setValueFloat(base.DATA_EXPORT_FPS, 10000.) 
    base.run()

if __name__ == "__main__":
    main()

However, I got this error.
image