コード例 #1
0
        public void ToSplinesTest()
        {
            PMBoundary boundary = _powerMILL.ActiveProject.Boundaries.CreateBoundary(TestFiles.CurvesFiles);
            var        splines  = boundary.ToSplines();

            Assert.AreEqual(2, splines.Count);
        }
コード例 #2
0
        public void CreateFromSpline()
        {
            PMBoundary boundary = _powerMILL.ActiveProject.Boundaries.CreateBoundary(TestFiles.CurvesFiles);
            var        spline   = boundary.ToSplines().First();

            PMBoundary newBoundary = _powerMILL.ActiveProject.Boundaries.CreateBoundary(spline);

            Assert.NotNull(newBoundary);
        }