Beispiel #1
0
        /// <since>5.0</since>
        public bool SetFromHatch(Hatch hatch)
        {
            IntPtr pThis       = NonConstPointer();
            IntPtr pConstHatch = hatch.ConstPointer();

            return(UnsafeNativeMethods.CRhinoGumball_SetFromHatch(pThis, pConstHatch));
        }
Beispiel #2
0
        /// <summary>
        /// Replaces a hatch object's underlying hatch geometry. This only works for non-document hatch objects.
        /// </summary>
        /// <param name="hatch">The replacement hatch geometry.</param>
        /// <returns>true if successful, false otherwise.</returns>
        public bool SetHatchGeometry(Hatch hatch)
        {
            if (null == hatch || !hatch.IsValid)
            {
                return(false);
            }
            if (null != Document)
            {
                return(false);            // only works with non-document objects
            }
            IntPtr ptr_this        = NonConstPointer();
            IntPtr ptr_const_hatch = hatch.ConstPointer();

            return(UnsafeNativeMethods.CRhinoHatch_SetHatch(ptr_this, ptr_const_hatch));
        }