Exemple #1
0
        /// <summary>
        /// Apply ActionExtrusionRate write action to this cursor.
        /// </summary>
        /// <param name="action"></param>
        /// <returns></returns>
        public bool ApplyAction(ActionExtrusionRate action)
        {
            if (action.relative)
            {
                this.extrusionRate += action.rate;
            }
            else
            {
                this.extrusionRate = action.rate;
            }

            return(true);
        }
Exemple #2
0
        /// <summary>
        /// Apply ActionExtrusionRate write action to this cursor.
        /// </summary>
        /// <param name="action"></param>
        /// <returns></returns>
        public bool ApplyAction(ActionExtrusionRate action)
        {
            if (action.relative)
            {
                this.extrusionRate += action.rate;
            }
            else
            {
                this.extrusionRate = action.rate;
            }

            if (_logRelativeActions && action.relative)
            {
                logger.Verbose("Extrusion rate set to " + this.extrusionRate);
            }

            return(true);
        }