Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ogs
ogs
Commits
d9c9d51c
Commit
d9c9d51c
authored
Dec 26, 2020
by
Tom Fischer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PL/LIE] Subst. MaL::Vector3 by Eigen::Vector3d.
parent
a7805df3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ProcessLib/LIE/Common/Utils.cpp
ProcessLib/LIE/Common/Utils.cpp
+3
-3
No files found.
ProcessLib/LIE/Common/Utils.cpp
View file @
d9c9d51c
...
...
@@ -9,7 +9,6 @@
#include "Utils.h"
#include "MathLib/Vector3.h"
#include "MeshLib/Elements/FaceRule.h"
namespace
ProcessLib
...
...
@@ -23,8 +22,9 @@ void computeNormalVector(MeshLib::Element const& e, unsigned const global_dim,
if
(
global_dim
==
2
)
{
assert
(
e
.
getGeomType
()
==
MeshLib
::
MeshElemType
::
LINE
);
auto
v1
=
MathLib
::
Vector3
(
*
e
.
getNode
(
1
))
-
MathLib
::
Vector3
(
*
e
.
getNode
(
0
));
Eigen
::
Vector3d
const
v1
=
Eigen
::
Map
<
Eigen
::
Vector3d
const
>
(
e
.
getNode
(
1
)
->
getCoords
())
-
Eigen
::
Map
<
Eigen
::
Vector3d
const
>
(
e
.
getNode
(
0
)
->
getCoords
());
element_normal
[
0
]
=
-
v1
[
1
];
element_normal
[
1
]
=
v1
[
0
];
element_normal
[
2
]
=
0
;
// not used in 2d but needed for normalization
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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