Beispiel #1
0
 public BodyBone(BodyNode s, BodyNode d, string name)
 {
     _src  = s;
     _dst  = d;
     _name = name;
     _src.addAdjBone(this);
     _dst.addAdjBone(this);
     _entity = new Ellipsoid(_len, _wid, _thickness, _nslices);
     updateEntity();
 }
Beispiel #2
0
 public BodyBone(BodyNode s, BodyNode d, string name, double w, double th, int n)
 {
     _src  = s;
     _dst  = d;
     _name = name;
     _src.addAdjBone(this);
     _dst.addAdjBone(this);
     _len       = (_src._POS - _dst._POS).Length();
     _wid       = w;
     _thickness = th;
     _nslices   = n;
     _entity    = new Ellipsoid(_len, _wid, _thickness, _nslices);
     updateEntity();
 }