개정판 676420e4
dev issue #507 : fix VentDrain modeling
Change-Id: Ife705f84c024fbedd326252778ff67eda953206a
DTI_PID/SPPIDConverter/BaseModel/Document.cs | ||
---|---|---|
1079 | 1079 |
if (lines.Count == 1 && !SPPIDUtil.IsBranchedLine(this, lines[0]) && SPPIDUtil.IsBranchLine(lines[0])) |
1080 | 1080 |
{ |
1081 | 1081 |
Line line = lines[0]; |
1082 |
double startX = 0; |
|
1083 |
double startY = 0; |
|
1084 |
double endX = 0; |
|
1085 |
double endY = 0; |
|
1086 |
SPPIDUtil.ConvertPointBystring(line.STARTPOINT, ref startX, ref startY); |
|
1087 |
SPPIDUtil.ConvertPointBystring(line.ENDPOINT, ref endX, ref endY); |
|
1088 |
SlopeType slopeType = SPPIDUtil.CalcSlope(startX, startY, endX, endY); |
|
1089 |
if (slopeType == SlopeType.HORIZONTAL || slopeType == SlopeType.VERTICAL) |
|
1082 |
if (line.TYPE == "Secondary" || line.TYPE == "Primary") |
|
1090 | 1083 |
{ |
1091 |
foreach (var symbol in group) |
|
1084 |
double startX = 0; |
|
1085 |
double startY = 0; |
|
1086 |
double endX = 0; |
|
1087 |
double endY = 0; |
|
1088 |
SPPIDUtil.ConvertPointBystring(line.STARTPOINT, ref startX, ref startY); |
|
1089 |
SPPIDUtil.ConvertPointBystring(line.ENDPOINT, ref endX, ref endY); |
|
1090 |
SlopeType slopeType = SPPIDUtil.CalcSlope(startX, startY, endX, endY); |
|
1091 |
if (slopeType == SlopeType.HORIZONTAL || slopeType == SlopeType.VERTICAL) |
|
1092 | 1092 |
{ |
1093 |
if (!VentDrainSymbol.Contains(symbol)) |
|
1094 |
VentDrainSymbol.Add(symbol); |
|
1093 |
foreach (var symbol in group) |
|
1094 |
{ |
|
1095 |
if (!VentDrainSymbol.Contains(symbol)) |
|
1096 |
VentDrainSymbol.Add(symbol); |
|
1097 |
} |
|
1098 |
VentDrainLine.Add(lines[0]); |
|
1095 | 1099 |
} |
1096 |
VentDrainLine.Add(lines[0]); |
|
1097 | 1100 |
} |
1098 | 1101 |
} |
1099 | 1102 |
} |
내보내기 Unified diff