예제 #1
0
        /// <summary> Contours the given chains. </summary>
        ///
        /// <param name="chains"> The chains. </param>
        ///
        /// <returns> true if it succeeds, false if it fails. </returns>
        private bool Contour(Chain[] chains)
        {
            var endMill = UtilityService.CreateTool();

            if (endMill == null)
            {
                UtilityService.ShowMessage("Failed to create tool");
                return(false);
            }

            var contourOp = UtilityService.CreateContourOperation(endMill, chains);

            if (contourOp == null)
            {
                UtilityService.ShowMessage("Failed to create contour operation");
                return(false);
            }

            return(true);
        }