private void drawAABB(DGeom g) { if (show_aabb) { // draw the bounding box for this geom DAABBC aabb = g.getAABB(); DVector3 bbpos = aabb.getCenter(); DVector3 bbsides = aabb.getLengths(); DMatrix3 RI = new DMatrix3(); RI.setIdentity (); dsSetColorAlpha (1,0,0,0.5f); dsDrawBox (bbpos,RI,bbsides); } }
private void drawAABB(DGeom g) { if (show_aabb) { // draw the bounding box for this geom DAABBC aabb = g.getAABB(); DVector3 bbpos = aabb.getCenter(); DVector3 bbsides = aabb.getLengths(); DMatrix3 RI = new DMatrix3(); RI.setIdentity (); dsSetColorAlpha (1,0,0,0.5f); dsDrawBox (bbpos,RI,bbsides); } }
private void drawAABB(DGeom g) { if (show_aabb) { // draw the bounding box for this geom DAABBC aabb = g.getAABB(); DVector3 bbpos = aabb.getCenter(); DVector3 bbsides = aabb.getLengths(); DMatrix3 RI = new DMatrix3(); RI.setIdentity (); dsSetColorAlpha (1,0,0,0.5f); dsDrawBox (bbpos,RI,bbsides); } }
DVector3 bbsides = aabb.getLengths(); DMatrix3 RI = new DMatrix3(); RI.setIdentity();
DVector3 bbsides = aabb.getLengths(); DMatrix3 RI = new DMatrix3(); RI.setIdentity ();
DVector3 bbsides = aabb.getLengths(); DMatrix3 RI = new DMatrix3(); RI.setIdentity();
DVector3 bbsides = aabb.getLengths(); DMatrix3 RI = new DMatrix3(); RI.setIdentity ();
DVector3 bbsides = aabb.getLengths(); DMatrix3 RI = new DMatrix3(); RI.setIdentity();
0.5* (aabb.getMin1()+aabb.getMax1()), 0.5* (aabb.getMin2()+aabb.getMax2())); DVector3 bbsides = aabb.getLengths(); DMatrix3 RI = new DMatrix3(); RI.setIdentity();