예제 #1
0
        /// <summary>
        /// Contents of the gumball are copied to the base gumball of this class.
        /// </summary>
        /// <param name="gumball">The gumball source.</param>
        /// <param name="appearanceSettings">The gumball appearance and behavior settings.</param>
        /// <since>5.0</since>
        public void SetBaseGumball(GumballObject gumball, GumballAppearanceSettings appearanceSettings)
        {
            IntPtr pConstGumball       = gumball.ConstPointer();
            IntPtr pThis               = NonConstPointer();
            IntPtr pAppearanceSettings = IntPtr.Zero;

            if (appearanceSettings != null)
            {
                pAppearanceSettings = appearanceSettings.CreatePointer();
            }
            UnsafeNativeMethods.CRhinoGumballDisplayConduit_SetBaseGumball(pThis, pConstGumball, pAppearanceSettings);
        }
예제 #2
0
 /// <summary>
 /// Contents of the gumball are copied to the base gumball of this class.
 /// </summary>
 /// <param name="gumball">The gumball source.</param>
 /// <since>5.0</since>
 public void SetBaseGumball(GumballObject gumball)
 {
     SetBaseGumball(gumball, null);
 }