@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)); }
@Override public Object3D duplicate() { Blob copy = new Blob(); copy.copyObject(this); return copy; }