- for (int i = 0; i < this.resolution - 1; i++)
- {
- dx = ((Math.Abs((float)((this.PartialFrontPlain1[0].X - this.RarePlain2_1[0].X) / this.resolution))) * i);
- dy = ((Math.Abs((float)((this.PartialFrontPlain1[0].Y - this.RarePlain2_1[0].Y) / this.resolution))) * i);
- dz = ((Math.Abs((float)((this.PartialFrontPlain1[0].Z - this.RarePlain2_1[0].Z) / this.resolution))) * i);
- this.controlPointsTopNurb1[i, 0, 0] = this.PartialFrontPlain2[0].X - dx;
- this.controlPointsTopNurb1[i, 0, 1] = this.PartialFrontPlain2[0].Y - dy;
- this.controlPointsTopNurb1[i, 0, 2] = this.PartialFrontPlain2[0].Z + dz;
- this.controlPointsTopNurb1[i, 0, 3] = 1;
- this.controlPointsTopNurb1[i, 1, 0] = this.PartialFrontPlain2[0].X - dx - 0.003;
- this.controlPointsTopNurb1[i, 1, 1] = this.PartialFrontPlain2[0].Y - dy + radius_top_scaled - 0.003;
- this.controlPointsTopNurb1[i, 1, 2] = this.PartialFrontPlain2[0].Z + dz;
- this.controlPointsTopNurb1[i, 1, 3] = 1;
- this.controlPointsTopNurb1[i, 2, 0] = this.PartialFrontPlain1[0].X - dx;
- this.controlPointsTopNurb1[i, 2, 1] = this.PartialFrontPlain1[0].Y - dy;
- this.controlPointsTopNurb1[i, 2, 2] = this.PartialFrontPlain1[0].Z + dz;
- this.controlPointsTopNurb1[i, 2, 3] = 1;
- }
- this.controlPointsTopNurb1[this.resolution - 1, 0, 0] = this.RarePlain2_3[0].X;
- this.controlPointsTopNurb1[this.resolution - 1, 0, 1] = this.RarePlain2_3[0].Y;
- this.controlPointsTopNurb1[this.resolution - 1, 0, 2] = this.RarePlain2_3[0].Z;
- this.controlPointsTopNurb1[this.resolution - 1, 0, 3] = 1;
- this.controlPointsTopNurb1[this.resolution - 1, 1, 0] = this.RarePlain2_3[0].X - 0.003;
- this.controlPointsTopNurb1[this.resolution - 1, 1, 1] = this.RarePlain2_3[0].Y + radius_top_scaled - 0.003;
- this.controlPointsTopNurb1[this.resolution - 1, 1, 2] = this.RarePlain2_3[0].Z;
- this.controlPointsTopNurb1[this.resolution - 1, 1, 3] = 1;
- this.controlPointsTopNurb1[this.resolution - 1, 2, 0] = this.RarePlain2_3[1].X;
- this.controlPointsTopNurb1[this.resolution - 1, 2, 1] = this.RarePlain2_3[1].Y + radius_top_scaled;
- this.controlPointsTopNurb1[this.resolution - 1, 2, 2] = this.RarePlain2_3[1].Z;
- this.controlPointsTopNurb1[this.resolution - 1, 2, 3] = 1;