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
40043594
Commit
40043594
authored
Jul 23, 2025
by
Riegel
Browse files
Refactor: Add special deserializer for Vertex
parent
fecb1655
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/datastructure/Vertex.java
View file @
40043594
...
@@ -21,6 +21,8 @@ package de.hft.stuttgart.citydoctor2.datastructure;
...
@@ -21,6 +21,8 @@ package de.hft.stuttgart.citydoctor2.datastructure;
import
de.hft.stuttgart.citydoctor2.math.Vector3d
;
import
de.hft.stuttgart.citydoctor2.math.Vector3d
;
import
de.hft.stuttgart.citydoctor2.utils.SerializablePair
;
import
de.hft.stuttgart.citydoctor2.utils.SerializablePair
;
import
java.io.IOException
;
import
java.io.ObjectInputStream
;
import
java.io.Serial
;
import
java.io.Serial
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashSet
;
import
java.util.HashSet
;
...
@@ -91,6 +93,12 @@ public class Vertex extends Vector3d {
...
@@ -91,6 +93,12 @@ public class Vertex extends Vector3d {
throw
new
IllegalStateException
(
"Requested adjacent polygons with Geometry not containing this vertex"
);
throw
new
IllegalStateException
(
"Requested adjacent polygons with Geometry not containing this vertex"
);
}
}
@Serial
private
void
readObject
(
ObjectInputStream
in
)
throws
IOException
,
ClassNotFoundException
{
in
.
defaultReadObject
();
clearAdjacentRings
();
}
public
Set
<
Polygon
>
getAdjacentPolygons
(
Geometry
geom
)
{
public
Set
<
Polygon
>
getAdjacentPolygons
(
Geometry
geom
)
{
return
getAdjacentPolygonsWithoutNeighbor
(
geom
);
return
getAdjacentPolygonsWithoutNeighbor
(
geom
);
}
}
...
...
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