yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #07438
[Branch ~yade-dev/yade/trunk] Rev 2810: - Fix error in Volume_cell function.
------------------------------------------------------------
revno: 2810
committer: Emanuele Catalano <catalano@xxxxxxxxxxx
branch nick: yade
timestamp: Fri 2011-04-08 12:50:28 +0200
message:
- Fix error in Volume_cell function.
modified:
pkg/dem/FlowEngine.cpp
--
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 'pkg/dem/FlowEngine.cpp'
--- pkg/dem/FlowEngine.cpp 2011-04-06 16:37:32 +0000
+++ pkg/dem/FlowEngine.cpp 2011-04-08 10:50:28 +0000
@@ -605,6 +605,12 @@
{
Vector3r A[4];
+ for ( int y=0;y<4;y++ )
+ {
+ const shared_ptr<Body>& sph = Body::byId( cell->vertex ( y )->info().id(), scene );
+ A[y]=sph->state->pos;
+ }
+
CGT::Point p1 ( ( A[0] ) [0], ( A[0] ) [1], ( A[0] ) [2] );
CGT::Point p2 ( ( A[1] ) [0], ( A[1] ) [1], ( A[1] ) [2] );
CGT::Point p3 ( ( A[2] ) [0], ( A[2] ) [1], ( A[2] ) [2] );