OpenVDB output example script

81 views
Skip to first unread message

Nicholas Yue

unread,
Jul 28, 2018, 2:01:52 PM7/28/18
to mantaflow Forum
Hi,

  Is there any example python script which shows how the grid scalar and vector values can be written out e.g. in OpenVDB format ?

Cheers

Jorge Rodríguez

unread,
Jul 28, 2018, 11:16:39 PM7/28/18
to mantaflow Forum
I don´t know about the OpenVDB format, but you can save any RealGrid or MACGrid with the save method.
e.g.

vel.save(path + name + .txt)

Nils Thuerey

unread,
Jul 29, 2018, 8:31:44 AM7/29/18
to mantaflow Forum
Mantaflow determines the filetype from the extension. So if you compiled with OpenVDB (you can enable it in cmake), saving with ".vdb" extension should directly give you an OpenVDB file.

Cheers, Nils
Reply all
Reply to author
Forward
0 new messages