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
3a4ad3b0
Commit
3a4ad3b0
authored
Sep 17, 2026
by
Pries
Browse files
SweepUtilities: Tolerances changed
parent
96df162f
Pipeline
#12448
passed with stage
in 2 minutes and 38 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/Extensions/CityDoctorHealer/src/main/java/de/hft/stuttgart/citydoctor2/healing/HealPlanarPolygonSweep.java
View file @
3a4ad3b0
...
@@ -29,7 +29,7 @@ public class HealPlanarPolygonSweep implements HealingMethod {
...
@@ -29,7 +29,7 @@ public class HealPlanarPolygonSweep implements HealingMethod {
return
false
;
return
false
;
}
}
SweepUtilities
utils
=
new
SweepUtilities
(
err
,
0.
0
01
,
0.001
);
SweepUtilities
utils
=
new
SweepUtilities
(
err
,
0.01
,
0.
0
001
);
utils
.
initialize
();
utils
.
initialize
();
if
(
utils
.
calculate
())
{
if
(
utils
.
calculate
())
{
utils
.
doHeal
();
utils
.
doHeal
();
...
...
CityDoctorParent/Extensions/CityDoctorHealer/src/main/java/de/hft/stuttgart/citydoctor2/healing/SweepUtilities.java
View file @
3a4ad3b0
...
@@ -22,9 +22,9 @@ public class SweepUtilities {
...
@@ -22,9 +22,9 @@ public class SweepUtilities {
private
Plane
targetPlane
;
private
Plane
targetPlane
;
private
Polygon
errorPolygon
;
private
Polygon
errorPolygon
;
private
double
minSweepEdgeLength
;
private
double
minSweepEdgeLength
=
0.01
;
private
double
pointOnPlaneTolerance
;
private
double
pointOnPlaneTolerance
=
0.00011
;
private
double
minLinePlaneAngle
;
private
double
minLinePlaneAngle
=
0.00011
;
private
List
<
SweepVertex
>
sweepVertices
;
private
List
<
SweepVertex
>
sweepVertices
;
...
@@ -33,8 +33,8 @@ public class SweepUtilities {
...
@@ -33,8 +33,8 @@ public class SweepUtilities {
double
sweepEdgeAndAngleTolerance
)
{
double
sweepEdgeAndAngleTolerance
)
{
this
.
pointOnPlaneTolerance
=
pointOnPlaneTolerance
;
this
.
pointOnPlaneTolerance
=
pointOnPlaneTolerance
;
minSweepEdgeLength
=
sweepEdgeAndAngleTolerance
;
minSweepEdgeLength
=
sweepEdgeAndAngleTolerance
*
1.1
;
minLinePlaneAngle
=
sweepEdgeAndAngleTolerance
;
minLinePlaneAngle
=
sweepEdgeAndAngleTolerance
*
1.1
;
if
(
err
==
null
)
{
if
(
err
==
null
)
{
return
;
return
;
...
...
CityDoctorParent/Extensions/CityDoctorHealer/src/main/java/de/hft/stuttgart/citydoctor2/healing/SweepVertex.java
View file @
3a4ad3b0
...
@@ -79,7 +79,7 @@ public class SweepVertex {
...
@@ -79,7 +79,7 @@ public class SweepVertex {
return
;
return
;
}
}
if
(
targetPlane
.
getDistance
(
sweepVertex
)
<
pointOnPlaneTolerance
)
{
if
(
targetPlane
.
getDistance
(
sweepVertex
)
<
=
pointOnPlaneTolerance
)
{
status
=
SweepVertexStatus
.
ON_PLANE
;
status
=
SweepVertexStatus
.
ON_PLANE
;
}
}
else
if
(
outgoingEdges
.
size
()
==
0
)
{
else
if
(
outgoingEdges
.
size
()
==
0
)
{
...
...
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