public override void SetClipModel(idClipModel model, float density, int id = 0, bool disposeOld = true) { if (this.Disposed == true) { throw new ObjectDisposedException(this.GetType().Name); } if (model.IsTraceModel == false) { throw new ArgumentException("model should be a trace model"); } if (density <= 0.0f) { throw new ArgumentException("density must be valid"); } if ((_clipModel != null) && (_clipModel != model) && (disposeOld == true)) { _clipModel.Dispose(); } _clipModel = model; _clipModel.Link(idR.Game.Clip, this.Self, 0, _clipModel.Origin, _clipModelAxis); }
public override void SetClipModel(idClipModel model, float density, int id = 0, bool disposeOld = true) { if (this.Disposed == true) { throw new ObjectDisposedException(this.GetType().Name); } if ((_clipModel != null) && (_clipModel != model) && (disposeOld == true)) { _clipModel.Dispose(); } _clipModel = model; if (_clipModel != null) { _clipModel.Link(idR.Game.Clip, _self, 0, _origin, _axis); } }