![]() |
|||||||||||
![]()
|
df3 Python ClassThe df3 python library is a importable python class that facilitates working with Povray .df3 density files This library is licenced under the LGPL No promises for backward compatibility until a few more iterations happen ScreenshotTo create the screenshot:
![]() Using The ClassA quick example that creates a 10x10x10 voxel .df3 file and initializes all values to 10. Start python and do the following with df3.py in either your path or the current directory: import df3 mydf3 = df3.df3(10,10,10) for x in range(mydf3.sizeX()): for y in range(mydf3.sizeY()): for z in range(mydf3.sizeZ()): mydf3.set(x, y, z, 10) mydf3.exportDF3('out.df3') Typing 'help(df3)' at the python prompt will give class information after df3 has been imported Known Problems
Download08/09/05 - Version 0.2007/13/05 - Version 0.10 |
|
|||||||||