Beispiel #1
0
        public override void imethod_3(
            Class95 loop,
            Class88 curve,
            Class107 coedge,
            Class917 approximation,
            Class258 accuracy)
        {
            Matrix4D    canonicalTransformation = this.FromCanonicalTransformation;
            Interface27 interval          = this.Interval;
            bool        directionReversed = coedge.DirectionReversed;
            Class102    startVertex       = coedge.StartVertex;
            Class102    endVertex         = coedge.EndVertex;
            Interface27 nterface27;

            if (startVertex != endVertex)
            {
                Matrix4D inverse  = canonicalTransformation.GetInverse();
                Class105 point1   = startVertex.Point;
                Class105 point2   = endVertex.Point;
                Point3D  point3D1 = point1.method_4(inverse);
                Point3D  point3D2 = point2.method_4(inverse);
                nterface27 = (Interface27) new Class437(System.Math.Atan2(point3D1.Y, point3D1.X), System.Math.Atan2(point3D2.Y, point3D2.X));
            }
            else
            {
                Matrix4D inverse = canonicalTransformation.GetInverse();
                Point3D  point3D = startVertex.Point.method_4(inverse);
                double   start   = System.Math.Atan2(point3D.Y, point3D.X);
                double   end     = directionReversed ? start - 2.0 * System.Math.PI : start + 2.0 * System.Math.PI;
                nterface27 = (Interface27) new Class437(start, end);
            }
            int    num1   = Class247.smethod_7(this.vector3D_1.GetLength(), accuracy);
            double start1 = nterface27.Start;
            double end1   = nterface27.End;

            if (directionReversed)
            {
                if (start1 < end1)
                {
                    end1 -= 2.0 * System.Math.PI;
                }
            }
            else if (start1 > end1)
            {
                end1 += 2.0 * System.Math.PI;
            }
            double num2 = (end1 - start1) / (double)num1;

            approximation.method_0(coedge.StartLocation);
            for (int index = 1; index < num1; ++index)
            {
                double  num3  = (double)index * num2 + start1;
                double  x     = System.Math.Cos(num3);
                double  y     = System.Math.Sin(num3);
                Point3D point = canonicalTransformation.Transform(new Point3D(x, y, 0.0));
                approximation.method_0(point);
            }
            approximation.method_0(coedge.EndLocation);
        }
Beispiel #2
0
 public virtual void imethod_3(
     Class95 loop,
     Class88 curve,
     Class107 coedge,
     Class917 approximation,
     Class258 accuracy)
 {
 }
Beispiel #3
0
 public override void imethod_3(
     Class95 loop,
     Class88 curve,
     Class107 coedge,
     Class917 approximation,
     Class258 accuracy)
 {
     this.class224_0.Approximation?.imethod_3(loop, curve, coedge, approximation, accuracy);
 }
Beispiel #4
0
 public override void imethod_3(
     Class95 loop,
     Class88 curve,
     Class107 coedge,
     Class917 approximation,
     Class258 accuracy)
 {
     approximation.method_0(coedge.StartLocation);
     approximation.method_0(coedge.EndLocation);
 }
Beispiel #5
0
    private static void smethod_2(ICryptoTransform A_0, Stream A_1, Stream A_2)
    {
        A_1.Position = 0L;
        A_2.Position = 0L;
        long num = new BinaryReader(A_1).ReadInt64();

        A_2.SetLength((long)Class567.smethod_5(num, 0x200));
        Class258.smethod_3(A_1, A_2, A_0);
        A_2.SetLength(num);
        A_1.Position = 0L;
        A_2.Position = 0L;
    }
Beispiel #6
0
    void Interface13.imethod_1(Stream A_0, Stream A_1, Stream A_2, string A_3)
    {
        Class803     class2 = new Class803();
        BinaryWriter writer = new BinaryWriter(A_0);

        smethod_3(writer);
        byte[]           buffer    = this.method_1(0x10);
        ICryptoTransform transform = Class258.smethod_1(smethod_5(0x80, class2, A_3, buffer));

        this.method_0(transform, buffer).method_0(writer);
        smethod_4(transform, A_1, A_2);
    }
Beispiel #7
0
    private static void smethod_4(ICryptoTransform A_0, Stream A_1, Stream A_2)
    {
        A_1.Position = 0L;
        A_2.Position = 0L;
        long length = A_1.Length;

        A_1.SetLength((long)Class567.smethod_5(A_1.Length, 0x10));
        new BinaryWriter(A_2).Write(length);
        A_2.SetLength((long)(Class567.smethod_5(length, 0x10) + 8));
        Class258.smethod_3(A_1, A_2, A_0);
        A_1.Position = 0L;
        A_2.Position = 0L;
    }
Beispiel #8
0
 public virtual void imethod_3(
     Class95 loop,
     Class88 curve,
     Class107 coedge,
     Class917 approximation,
     Class258 accuracy)
 {
     if (this.interface5_0 == null)
     {
         return;
     }
     this.interface5_0.imethod_3(loop, curve, coedge, approximation, accuracy);
 }
Beispiel #9
0
    void Interface13.imethod_0(Stream A_0, Stream A_1, Stream A_2, string A_3)
    {
        A_0.Position = 8L;
        BinaryReader reader = new BinaryReader(A_0);
        Class1103    class2 = new Class1103(reader);
        Class534     class3 = new Class534(reader, true);

        smethod_0(class2);
        Class803         class4    = new Class803();
        ICryptoTransform transform = Class258.smethod_0(smethod_5(class2.int_1, class4, A_3, class3.byte_0));

        smethod_1(transform, class3);
        smethod_2(transform, A_1, A_2);
    }
Beispiel #10
0
        public override void imethod_3(
            Class95 loop,
            Class88 curve,
            Class107 coedge,
            Class917 approximation,
            Class258 accuracy)
        {
            double fitTolerance;

            if (!accuracy.Absolute)
            {
                Bounds3D controlPolygonBounds = this.splineCurve3D_0.ControlPolygonBounds;
                fitTolerance = accuracy.method_0(controlPolygonBounds.Delta.GetLength());
            }
            else
            {
                fitTolerance = accuracy.Epsilon;
            }
            Point3D[] fitPoints = this.splineCurve3D_0.CreateFitPoints(fitTolerance, 0.01);
            approximation.method_5((IEnumerable <Point3D>)fitPoints, curve.Reversed ^ coedge.DirectionReversed);
        }
Beispiel #11
0
        public static int smethod_8(double radius, Class258 accuracy, int minimalSegments)
        {
            double num = accuracy.method_0(radius);

            return(4 * ((System.Math.Max((int)System.Math.Ceiling(System.Math.PI / System.Math.Acos((radius - num) / radius)), minimalSegments) + 3) / 4));
        }
Beispiel #12
0
 public static int smethod_7(double radius, Class258 accuracy)
 {
     return(Class247.smethod_8(radius, accuracy, 16));
 }
 public abstract void Visit(Class258 c);
 public override void Visit(Class258 c) { }