Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hyteg
hyteg
Commits
ea67fb68
Commit
ea67fb68
authored
Apr 04, 2022
by
Nils Kohl
🌝
Browse files
And another msvc fix.
parent
5f2ef2ef
Pipeline
#38943
failed with stages
in 92 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/hyteg/volumedofspace/VolumeDoFIndexing.cpp
View file @
ea67fb68
...
...
@@ -200,10 +200,10 @@ ElementNeighborInfo::ElementNeighborInfo( Index
// TODO: improve normal computation!
Point
innerPoint
=
(
1
/
3.
)
*
(
elementVertexCoords
()[
0
]
+
elementVertexCoords
()[
1
]
+
elementVertexCoords
()[
2
]
);
const
auto
s
=
(
innerPoint
-
interfaceVertexCoords_
[
n
][
0
]
)
.
template
dot
(
interfaceVertexCoords_
[
n
][
1
]
-
interfaceVertexCoords_
[
n
][
0
]
)
/
(
interfaceVertexCoords_
[
n
][
1
]
-
interfaceVertexCoords_
[
n
][
0
]
)
.
template
dot
(
interfaceVertexCoords_
[
n
][
1
]
-
interfaceVertexCoords_
[
n
][
0
]
);
const
auto
s
=
(
innerPoint
-
interfaceVertexCoords_
[
n
][
0
]
).
dot
(
interfaceVertexCoords_
[
n
][
1
]
-
interfaceVertexCoords_
[
n
][
0
]
)
/
(
interfaceVertexCoords_
[
n
][
1
]
-
interfaceVertexCoords_
[
n
][
0
]
)
.
dot
(
interfaceVertexCoords_
[
n
][
1
]
-
interfaceVertexCoords_
[
n
][
0
]
);
const
Point
proj
=
interfaceVertexCoords_
[
n
][
0
]
+
s
*
(
interfaceVertexCoords_
[
n
][
1
]
-
interfaceVertexCoords_
[
n
][
0
]
);
outwardNormal_
[
n
]
=
(
innerPoint
-
proj
);
outwardNormal_
[
n
].
normalize
();
...
...
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