Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
79bc2870
Commit
79bc2870
authored
Mar 19, 2021
by
Matthias Betz
Browse files
removing commeted code
parent
e763994c
Pipeline
#2449
passed with stage
in 3 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/datastructure/Geometry.java
View file @
79bc2870
...
...
@@ -145,24 +145,6 @@ public class Geometry extends GmlElement {
Edge
oppositeEdge
=
new
Edge
(
v1
,
v0
);
duplicacyMap
.
put
(
tempEdge
,
tempEdge
);
duplicacyMap
.
put
(
oppositeEdge
,
tempEdge
);
// for (Vertex v0Neighbor : v0.getNeighbors()) {
// Edge alternativeEdge = new Edge(v0Neighbor, v1);
// Edge oppositeAlternativeEdge = new Edge(v1, v0Neighbor);
// duplicacyMap.put(alternativeEdge, tempEdge);
// duplicacyMap.put(oppositeAlternativeEdge, tempEdge);
// for (Vertex v1Neighbor : v1.getNeighbors()) {
// alternativeEdge = new Edge(v0Neighbor, v1Neighbor);
// oppositeAlternativeEdge = new Edge(v1Neighbor, v0Neighbor);
// duplicacyMap.put(alternativeEdge, tempEdge);
// duplicacyMap.put(oppositeAlternativeEdge, tempEdge);
// }
// }
// for (Vertex v : v1.getNeighbors()) {
// Edge alternativeEdge = new Edge(v0, v);
// Edge oppositeAlternativeEdge = new Edge(v, v0);
// duplicacyMap.put(alternativeEdge, tempEdge);
// duplicacyMap.put(oppositeAlternativeEdge, tempEdge);
// }
e
=
tempEdge
;
edges
.
add
(
e
);
edgeMap
.
put
(
new
SerializablePair
<>(
v0
,
v1
),
e
);
...
...
@@ -296,24 +278,6 @@ public class Geometry extends GmlElement {
if
(
edge
!=
null
)
{
return
edge
;
}
// for (Vertex neighborV1 : v1.getNeighbors()) {
// edge = edgeMap.get(new SerializablePair<>(neighborV1, v2));
// if (edge != null) {
// return edge;
// }
// for (Vertex neighborV2 : v2.getNeighbors()) {
// edge = edgeMap.get(new SerializablePair<>(neighborV1, neighborV2));
// if (edge != null) {
// return edge;
// }
// }
// }
// for (Vertex neighborV2 : v2.getNeighbors()) {
// edge = edgeMap.get(new SerializablePair<>(neighborV2, v1));
// if (edge != null) {
// return edge;
// }
// }
return
null
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment