Remove * and @ lines
This commit is contained in:
@ -71,8 +71,9 @@ internal class Point
|
||||
string[] segments;
|
||||
string[] segmentsB;
|
||||
bool found = false;
|
||||
bool foundB = false;
|
||||
string[] segmentsC;
|
||||
bool foundB = false;
|
||||
int x = constant.Take - 2;
|
||||
List<string> sites = new();
|
||||
for (int i = 0; i < lines.Count; i++)
|
||||
{
|
||||
@ -107,24 +108,24 @@ internal class Point
|
||||
segments = s.Split(new string[] { "(", ",", ")" }, StringSplitOptions.None);
|
||||
if (segments.Length < 2)
|
||||
break;
|
||||
segmentsB = lines[i + 10].Split(' ');
|
||||
segmentsB = lines[i + x].Split(' ');
|
||||
if (segmentsB.Length < 2)
|
||||
break;
|
||||
point = new(segments[0].Trim(),
|
||||
segments[1].Trim(),
|
||||
segments[2].Trim(),
|
||||
nAvg: lines[i + 2].Trim(),
|
||||
nsl: lines[i + 3].Trim(),
|
||||
vd: lines[i + 4].Trim(),
|
||||
flatZ: lines[i + 5].Trim(),
|
||||
rhoAvg: lines[i + 6].Trim(),
|
||||
rhosl: lines[i + 7].Trim(),
|
||||
phase: lines[i + 8].Trim(),
|
||||
grade: lines[i + 9].Trim(),
|
||||
point = new(site: segments[0].Trim(),
|
||||
x: segments[1].Trim(),
|
||||
y: segments[2].Trim(),
|
||||
nAvg: lines[i + 1].Trim(),
|
||||
nsl: lines[i + 2].Trim(),
|
||||
vd: lines[i + 3].Trim(),
|
||||
flatZ: lines[i + 4].Trim(),
|
||||
rhoAvg: lines[i + 5].Trim(),
|
||||
rhosl: lines[i + 6].Trim(),
|
||||
phase: lines[i + 7].Trim(),
|
||||
grade: lines[i + 8].Trim(),
|
||||
xLeft: segmentsB[0],
|
||||
xRight: segmentsB[1],
|
||||
bottomY: lines[i + 11].Trim(),
|
||||
topY: lines[i + 12].Trim());
|
||||
bottomY: lines[i + 10].Trim(),
|
||||
topY: lines[i + 11].Trim());
|
||||
results.Add(point);
|
||||
i += constant.Take;
|
||||
}
|
||||
|
Reference in New Issue
Block a user