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
9430c116
Commit
9430c116
authored
Aug 03, 2021
by
Matthias Betz
Browse files
fixed degnerated polygon test
parent
2066345b
Pipeline
#4633
passed with stage
in 2 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorValidation/src/test/java/de/hft/stuttgart/citydoctor2/checks/geometry/DegeneratedPolygonCheckTest.java
View file @
9430c116
...
...
@@ -30,6 +30,7 @@ import org.junit.Test;
import
de.hft.stuttgart.citydoctor2.check.CheckError
;
import
de.hft.stuttgart.citydoctor2.check.Checker
;
import
de.hft.stuttgart.citydoctor2.check.Requirement
;
import
de.hft.stuttgart.citydoctor2.check.ValidationConfiguration
;
import
de.hft.stuttgart.citydoctor2.datastructure.Building
;
import
de.hft.stuttgart.citydoctor2.datastructure.CityDoctorModel
;
...
...
@@ -74,8 +75,8 @@ public class DegeneratedPolygonCheckTest {
ValidationConfiguration
valConfig
=
ValidationConfiguration
.
loadStandardValidationConfig
();
valConfig
.
setMinVertexDistanceInGlobalParameters
(
0.004
);
Map
<
String
,
String
>
parameters
=
new
HashMap
<>();
parameters
.
put
(
"degeneratedPolygonTolerance"
,
"0.004"
);
valConfig
.
getRequirements
().
get
(
RequirementId
.
R_GE_
P_NON_PLANAR
.
toString
()).
getParameters
().
putAll
(
parameters
);
parameters
.
put
(
Requirement
.
DEGENERATED_RING_TOLERANCE
,
"0.004"
);
valConfig
.
getRequirements
().
get
(
RequirementId
.
R_GE_
R_SELF_INTERSECTION
.
toString
()).
getParameters
().
putAll
(
parameters
);
Checker
c
=
new
Checker
(
valConfig
,
model
);
c
.
runChecks
();
...
...
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