← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2217: 1. Fix facet wall vertices addition in TriaxialTest.

 

------------------------------------------------------------
revno: 2217
committer: Václav Šmilauer <eudoxos@xxxxxxxx>
branch nick: trunk
timestamp: Tue 2010-05-11 15:01:03 +0200
message:
  1. Fix facet wall vertices addition in TriaxialTest.
modified:
  pkg/dem/PreProcessor/TriaxialTest.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/PreProcessor/TriaxialTest.cpp'
--- pkg/dem/PreProcessor/TriaxialTest.cpp	2010-04-26 13:58:23 +0000
+++ pkg/dem/PreProcessor/TriaxialTest.cpp	2010-05-11 13:01:03 +0000
@@ -268,7 +268,7 @@
 		Vector3r v[3]; v[0]=corner; v[1]=corner+side1; v[2]=corner+side2;
 		Vector3r cog=Shop::inscribedCircleCenter(v[0],v[1],v[2]);
 		shared_ptr<Facet> iFacet(new Facet);
-		for(int i=0; i<3; i++){ iFacet->vertices.push_back(v[i]-cog);}
+		for(int i=0; i<3; i++){ iFacet->vertices[i]=v[i]-cog;}
 		iFacet->color=Vector3r(1,1,1);
 		body->shape=iFacet;
 	}