/// <summary> /// Determine the width of a bond, returning either the width defined /// in the model, or the override width. Note that this will be scaled /// to the space of the model. /// </summary> /// <param name="bond">the bond to determine the width for</param> /// <param name="model">the renderer model</param> /// <returns>a double in chem-model space</returns> public virtual double GetWidthForBond(IBond bond, RendererModel model) { double scale = model.GetScale(); if (this.overrideBondWidth != -1) { return(this.overrideBondWidth / scale); } else { return(model.GetBondWidth() / scale); } }