AoMEngineLibrary.Graphics.Brg.BrgAttachpoint.GetMaxScale C# (CSharp) Method

GetMaxScale() public method

public GetMaxScale ( ) : string
return string
        public string GetMaxScale()
        {
            return Maxscript.NewPoint3<float>("boundingScale", (this.BoundingBoxMax.X - this.BoundingBoxMin.X), (this.BoundingBoxMax.Z - this.BoundingBoxMin.Z), (this.BoundingBoxMax.Y - this.BoundingBoxMin.Y));
        }

Usage Example

 private void attachpointListBox_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     int index = attachpointListBox.IndexFromPoint(e.Location);
     if (index != System.Windows.Forms.ListBox.NoMatches)
     {
         BrgAttachpoint att = new BrgAttachpoint();
         att.NameId = BrgAttachpoint.GetIdByName((string)attachpointListBox.Items[index]);
         Maxscript.NewDummy("newDummy", att.GetMaxName(), att.GetMaxTransform(), att.GetMaxPosition(), att.GetMaxBoxSize(), att.GetMaxScale());
     }
 }