yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #02207
[Branch ~yade-dev/yade/trunk] Rev 1779: Changes in facetBox function to get other facet normals
------------------------------------------------------------
revno: 1779
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: trunk
timestamp: Wed 2009-11-04 16:53:24 +0100
message:
Changes in facetBox function to get other facet normals
modified:
py/utils.py
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription.
=== modified file 'py/utils.py'
--- py/utils.py 2009-10-21 15:22:14 +0000
+++ py/utils.py 2009-11-04 15:53:24 +0000
@@ -137,11 +137,11 @@
G=qTemp.Rotate(Vector3(mx[0],mx[1],mx[2]))+center
H=qTemp.Rotate(Vector3(mn[0],mx[1],mx[2]))+center
if wallMask&1: ret+=doWall(A,D,H,E)
- if wallMask&2: ret+=doWall(B,C,G,F)
- if wallMask&4: ret+=doWall(A,B,F,E)
- if wallMask&8: ret+=doWall(D,H,G,C)
- if wallMask&16: ret+=doWall(A,D,C,B)
- if wallMask&32: ret+=doWall(E,F,G,H)
+ if wallMask&2: ret+=doWall(B,F,G,C)
+ if wallMask&4: ret+=doWall(A,E,F,B)
+ if wallMask&8: ret+=doWall(D,C,G,H)
+ if wallMask&16: ret+=doWall(A,B,C,D)
+ if wallMask&32: ret+=doWall(E,H,G,F)
return ret