|
@@ -2145,16 +2145,16 @@ namespace OTSIncAReportGraph.Controls
|
|
|
for (int i = 0; i < DividedParticle.SegmentList.Count; i++)
|
|
|
{
|
|
|
int h = DividedParticle.SegmentList[i].Height;
|
|
|
- //Segment segment = DividedParticle.SegmentList[i];
|
|
|
- //segment.Start = DividedParticle.SegmentList[i].Start;
|
|
|
- //int end = segment.Start - GetsegmentationX(P1, P2, h);
|
|
|
- //segment.Length = Math.Abs(end);
|
|
|
- //Particle1.SegmentList.Add(segment);
|
|
|
-
|
|
|
- //Segment segment2 = new Segment();
|
|
|
- //segment.Start = end;
|
|
|
- //segment.Length = DividedParticle.SegmentList[i].Length- segment.Length;
|
|
|
- //Particle2.SegmentList.Add(segment2);
|
|
|
+ Segment segment = DividedParticle.SegmentList[i];
|
|
|
+ segment.Start = DividedParticle.SegmentList[i].Start;
|
|
|
+ int end = segment.Start - GetsegmentationX(P1, P2, h);
|
|
|
+ segment.Length = Math.Abs(end);
|
|
|
+ Particle1.SegmentList.Add(segment);
|
|
|
+
|
|
|
+ Segment segment2 = new Segment();
|
|
|
+ segment.Start = end;
|
|
|
+ segment.Length = DividedParticle.SegmentList[i].Length- segment.Length;
|
|
|
+ Particle2.SegmentList.Add(segment2);
|
|
|
}
|
|
|
}
|
|
|
private void ParticleSegmentation_Click(object sender, EventArgs e)
|