Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Raybaud <mauriceraybaud@hotmail.fr>2015-02-07 03:45:21 +0300
committerMaurice Raybaud <mauriceraybaud@hotmail.fr>2015-02-18 20:59:55 +0300
commit96fbb13f49f8d4675337532e99edb384fce202cb (patch)
treef7f48d0519ab6265bb5e90bc469445659dcc0545 /render_povray/df3.py
parente12828164ea9982da1dab67d991c1a3b7eb74d47 (diff)
WIP: Very basic smoke export
Diffstat (limited to 'render_povray/df3.py')
-rw-r--r--render_povray/df3.py44
1 files changed, 22 insertions, 22 deletions
diff --git a/render_povray/df3.py b/render_povray/df3.py
index 60b6e721..30054504 100644
--- a/render_povray/df3.py
+++ b/render_povray/df3.py
@@ -351,30 +351,30 @@ class df3:
return tmp
# -=-=-=- End df3 Class -=-=-=-
+##########DEFAULT EXAMPLES
+# if __name__ == '__main__':
+ # localX = 80
+ # localY = 90
+ # localZ = 100
+ ## Generate an output
+ # temp = df3(localX, localY, localZ)
+
+ # for i in range(localX):
+ # for j in range(localY):
+ # for k in range(localZ):
+ # if (i >= (localX/2)):
+ # temp.set(i, j, k, 1.0)
+
+ # temp.exportDF3('temp.df3', 16)
+###############################################################################
+ ## Import
+ # temp2 = df3().importDF3('temp.df3')
+ # temp2.mult(1/temp2.max())
-if __name__ == '__main__':
- localX = 80
- localY = 90
- localZ = 100
- # Generate an output
- temp = df3(localX, localY, localZ)
-
- for i in range(localX):
- for j in range(localY):
- for k in range(localZ):
- if (i >= (localX/2)):
- temp.set(i, j, k, 1.0)
-
- temp.exportDF3('temp.df3', 16)
-
- # Import
- temp2 = df3().importDF3('temp.df3')
- temp2.mult(1/temp2.max())
-
- # Compare
- print(temp2.size())
+ ## Compare
+ # print(temp2.size())
- if (temp.compare(temp2) == 0): print("DF3's Do Not Match")
+ # if (temp.compare(temp2) == 0): print("DF3's Do Not Match")
###############################################################################
# ChangeLog