/// <summary>
        /// Expert user tool that copies user data that has a positive
        /// CopyCount from the source object to a destination object.
        /// Generally speaking you don't need to use Copy().
        /// Simply rely on things like the copy constructors to do the right thing.
        /// </summary>
        /// <param name="source">A source object for the data.</param>
        /// <param name="destination">A destination object for the data.</param>
        public static void Copy(Runtime.CommonObject source, Runtime.CommonObject destination)
        {
            IntPtr const_source    = source.ConstPointer();
            IntPtr ptr_destination = destination.NonConstPointer();

            UnsafeNativeMethods.ON_Object_CopyUserData(const_source, ptr_destination);
        }
Пример #2
0
        /// <summary>
        /// Removes all user data from this geometry.
        /// </summary>
        /// <remarks>User <see cref="Remove"/> to delete a single, known, item.</remarks>
        /// <since>6.0</since>
        public void Purge()
        {
            IntPtr non_const_ptr_onobject = m_parent.NonConstPointer();

            UnsafeNativeMethods.ON_UserData_PurgeUserData(non_const_ptr_onobject);
        }