Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Analyst WebApp
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fidentis
Analyst WebApp
Commits
74b71a48
There was an error fetching the commit references. Please try again later.
Commit
74b71a48
authored
3 years ago
by
Daniel Schramm
Browse files
Options
Downloads
Patches
Plain Diff
Error of multiplication by zero at zero scalar product fixed
parent
406b65bb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Comparison/src/main/java/cz/fidentis/analyst/visitors/mesh/HausdorffDistance.java
+4
-4
4 additions, 4 deletions
.../cz/fidentis/analyst/visitors/mesh/HausdorffDistance.java
with
4 additions
and
4 deletions
Comparison/src/main/java/cz/fidentis/analyst/visitors/mesh/HausdorffDistance.java
+
4
−
4
View file @
74b71a48
...
...
@@ -359,12 +359,12 @@ public class HausdorffDistance extends MeshVisitor {
if
(
relativeDist
)
{
// compute sign for relative distance
Vector3d
aux
=
new
Vector3d
(
closestV
);
aux
.
sub
(
point
.
getPosition
());
sign
=
(
int
)
Math
.
signum
(
aux
.
dot
(
point
.
getNormal
())
)
;
}
sign
=
aux
.
dot
(
point
.
getNormal
())
<
0
?
-
1
:
1
;
}
distances
.
get
(
facet
).
add
(
sign
*
dist
);
if
(
nearestPoints
.
containsKey
(
facet
))
{
// only strategies with the closest points are stored in the map
nearestPoints
.
get
(
facet
).
add
(
closestV
);
nearestPoints
.
get
(
facet
).
add
(
closestV
);
}
}
...
...
@@ -373,7 +373,7 @@ public class HausdorffDistance extends MeshVisitor {
* @return the only one existing closest vertex or {@code null}
*/
protected
Point3d
getClosestVertex
(
DistanceWithNearestPoints
vis
)
{
if
(
vis
.
getNearestPoints
().
size
()
!=
1
)
{
if
(
vis
.
getNearestPoints
().
size
()
!=
1
)
{
return
null
;
// somethig is wrong because there should be only my inspected facet
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment