示例#1
0
 /** @return */
 public WB_Coord getFaceCenter() {
   if (_halfedge == null) {
     return null;
   }
   HE_Halfedge he = _halfedge;
   final WB_Point _center = new WB_Point();
   int c = 0;
   do {
     _center.addSelf(he.getVertex());
     c++;
     he = he.getNextInFace();
   } while (he != _halfedge);
   _center.divSelf(c);
   return new WB_Point(_center);
 }