public override void vmethod_1(Interface9 writer) { Class647.smethod_1(writer, this.enum23_0); if (this.enum23_0 == Class647.Enum23.const_2) { return; } writer.imethod_4(this.int_0); Class883.smethod_1(writer, this.enum34_0); writer.imethod_4(this.int_1); writer.imethod_15(); for (int index = 0; index < this.int_1; ++index) { writer.imethod_7(this.double_0[index]); writer.imethod_4(this.int_2[index]); if ((index + 1) % 5 == 0) { writer.imethod_15(); } } if (this.int_1 % 5 != 0) { writer.imethod_15(); } for (int index = 0; index < this.point2D_0.Length; ++index) { writer.imethod_7(this.point2D_0[index].X); writer.imethod_7(this.point2D_0[index].Y); if (this.enum23_0 == Class647.Enum23.const_1) { writer.imethod_7(this.double_1[index]); } writer.imethod_15(); } }
public void imethod_0(Interface8 reader) { this.enum23_0 = Class647.smethod_0(reader); if (this.enum23_0 == Class647.Enum23.const_2) { return; } this.int_2 = reader.imethod_5(); this.int_3 = reader.imethod_5(); if (this.enum23_0 == Class647.Enum23.const_1) { this.enum2_0 = Class195.smethod_0(reader); } this.enum34_0 = Class883.smethod_0(reader); this.enum34_1 = Class883.smethod_0(reader); this.enum49_0 = Class1028.smethod_0(reader); this.enum49_1 = Class1028.smethod_0(reader); int length1 = reader.imethod_5(); int length2 = reader.imethod_5(); int num1 = 2; int num2 = 2; this.double_0 = new double[length1]; this.int_0 = new int[length1]; for (int index = 0; index < length1; ++index) { this.double_0[index] = reader.imethod_8(); this.int_0[index] = reader.imethod_5(); num1 += this.int_0[index]; } this.double_1 = new double[length2]; this.int_1 = new int[length2]; for (int index = 0; index < length2; ++index) { this.double_1[index] = reader.imethod_8(); this.int_1[index] = reader.imethod_5(); num2 += this.int_1[index]; } int num3 = num1 - this.int_2 - 1; int num4 = num2 - this.int_3 - 1; this.point3D_0 = new Point3D[num3 * num4]; if (this.enum23_0 == Class647.Enum23.const_1) { this.double_2 = new double[num3 * num4]; for (int index = 0; index < this.point3D_0.Length; ++index) { this.point3D_0[index] = Class794.smethod_15(reader); this.double_2[index] = reader.imethod_8(); } } else { for (int index = 0; index < this.point3D_0.Length; ++index) { this.point3D_0[index] = Class794.smethod_15(reader); } } }
public override void vmethod_0(Interface8 reader) { Class647.Enum23 enum23 = Class647.smethod_0(reader); if (enum23 == Class647.Enum23.const_2) { return; } int degree = reader.imethod_5(); this.enum34_0 = Class883.smethod_0(reader); int length1 = reader.imethod_5(); this.double_0 = new double[length1]; this.int_0 = new int[length1]; double[] knots = new double[length1 * degree + 2]; int length2 = 0; for (int index1 = 0; index1 < length1; ++index1) { double num1 = reader.imethod_8(); this.double_0[index1] = num1; int num2 = reader.imethod_5(); this.int_0[index1] = num2; if (index1 == 0 || index1 == length1 - 1) { ++num2; } for (int index2 = 0; index2 < num2; ++index2) { knots[length2++] = num1; } } if (length2 < knots.Length) { double[] numArray = new double[length2]; Array.Copy((Array)knots, 0, (Array)numArray, 0, length2); knots = numArray; } Point3D[] controlPoints = new Point3D[length2 - degree - 1]; double[] weights = new double[length2 - degree - 1]; for (int index = 0; index < controlPoints.Length; ++index) { controlPoints[index] = Class794.smethod_15(reader); if (enum23 == Class647.Enum23.const_1) { weights[index] = reader.imethod_8(); } } if (enum23 == Class647.Enum23.const_1) { this.splineCurve3D_0 = new SplineCurve3D(degree, knots, controlPoints, weights); } else { this.splineCurve3D_0 = new SplineCurve3D(degree, knots, controlPoints); } }
public override void vmethod_1(Interface9 writer) { if (this.splineCurve3D_0 == null) { Class647.smethod_1(writer, Class647.Enum23.const_2); } else { if (this.splineCurve3D_0.Weights == null) { Class647.smethod_1(writer, Class647.Enum23.const_0); } else { Class647.smethod_1(writer, Class647.Enum23.const_1); } int degree = this.splineCurve3D_0.KnotInfo.Degree; writer.imethod_4(degree); Class883.smethod_1(writer, this.enum34_0); int length = this.double_0.Length; writer.imethod_4(length); writer.imethod_15(); for (int index = 0; index < length; ++index) { writer.imethod_7(this.double_0[index]); writer.imethod_4(this.int_0[index]); if ((index + 1) % 5 == 0) { writer.imethod_15(); } } if (length % 5 == 0) { writer.imethod_15(); } for (int index = 0; index < this.splineCurve3D_0.ControlPoints.Length; ++index) { writer.imethod_7(this.splineCurve3D_0.ControlPoints[index].X); writer.imethod_7(this.splineCurve3D_0.ControlPoints[index].Y); writer.imethod_7(this.splineCurve3D_0.ControlPoints[index].Z); if (this.splineCurve3D_0.Weights != null) { writer.imethod_7(this.splineCurve3D_0.Weights[index]); } writer.imethod_15(); } } }
internal Struct29 method_11(Struct28 A_0, Class883 A_1) { if (A_0.method_0()) { return(new Struct29()); } Struct29 struct3 = new Struct29(); Struct28 struct4 = A_0.method_1(); bool flag = false; int num2 = -1; int num = 0; int count = A_1.list_0.Count; while (num < count) { Struct28 struct5 = A_1.list_0[num]; if ((!flag && (struct4.int_1 >= struct5.int_1)) && (struct4.int_1 < struct5.int_0)) { Struct30 struct6 = A_1.list_2[num]; struct6.method_3(struct4.int_1 - A_1.list_0[num].int_1); struct3.method_3(struct6); num2 = num; flag = true; } if ((flag && (struct4.int_0 > struct5.int_1)) && (struct4.int_0 <= struct5.int_0)) { if ((num < (count - 1)) && (struct4.int_0 < struct5.int_0)) { struct3.method_1(A_1.list_2[num]); } else if ((num < (count - 1)) && (struct4.int_0 == struct5.int_0)) { struct3.method_1(A_1.list_2[num + 1]); } else if (num2 == (count - 1)) { struct3.method_1(struct3.method_2()); } else { struct3.method_1(this.struct30_1); } } num++; } return(struct3); }
public override void vmethod_0(Interface8 reader) { this.enum23_0 = Class647.smethod_0(reader); if (this.enum23_0 == Class647.Enum23.const_2) { return; } this.int_0 = reader.imethod_5(); this.enum34_0 = Class883.smethod_0(reader); this.int_1 = reader.imethod_5(); this.double_0 = new double[this.int_1]; this.int_2 = new int[this.int_1]; int num1 = 0; for (int index = 0; index < this.int_1; ++index) { this.double_0[index] = reader.imethod_8(); int num2 = reader.imethod_5(); this.int_2[index] = num2; if (index == 0 || index == this.int_1 - 1) { ++num2; } num1 += num2; } this.point2D_0 = new Point2D[num1 - this.int_0 - 1]; if (this.enum23_0 == Class647.Enum23.const_1) { this.double_1 = new double[num1 - this.int_0 - 1]; } for (int index = 0; index < this.point2D_0.Length; ++index) { this.point2D_0[index].X = reader.imethod_8(); this.point2D_0[index].Y = reader.imethod_8(); if (this.enum23_0 == Class647.Enum23.const_1) { this.double_1[index] = reader.imethod_8(); } } }