Пример #1
0
        public void UnitCircle_UnitRectangle_InvalidInput()
        {
            Curve unitCircle    = new Circle(Point3d.Origin, 0.5).ToNurbsCurve();
            Curve unitRectangle = new Rectangle3d(Plane.WorldXY, new Interval(-0.5, 0.5), new Interval(-0.5, 0.5)).ToNurbsCurve();

            double originalLength = unitRectangle.GetLength();

            Curve resultCurve = Logic.Transformations.Curves.TrimWithClosedCurve(unitCircle, unitRectangle);

            Assert.AreEqual(originalLength, resultCurve.GetLength());
        }