Пример #1
0
  @Override
  public void copyObject(Object3D obj) {
    if (!(obj instanceof Blob)) return;

    Blob o = (Blob) obj;

    charges = new ArrayList<Charge>(o.charges);

    cachedBounds = null;
    cachedWire = null;

    for (int i = 0; i < PROPERTIES.length; i++) setPropertyValue(i, o.getPropertyValue(i));
  }
Пример #2
0
 @Override
 public Object3D duplicate() {
   Blob copy = new Blob();
   copy.copyObject(this);
   return copy;
 }