Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
51d030c0
Commit
51d030c0
authored
May 31, 2021
by
Alexander Wiebel
Browse files
Merge branch '461-negative-distance-in-voxelizer-throws-assert-for-normal-sivert-track-dataset'
parents
98833079
1ce158fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/modules/filterProtonData/WCsvConverter.cpp
src/modules/filterProtonData/WCsvConverter.cpp
+9
-5
No files found.
src/modules/filterProtonData/WCsvConverter.cpp
View file @
51d030c0
...
...
@@ -289,11 +289,15 @@ void WCsvConverter::calculateFibers()
fibers
->
operator
[](
eID
)
=
fib
;
colors
->
operator
[](
eID
)
=
col
;
}
fib
->
push_back
(
pos
);
col
->
push_back
(
m_vectors
->
getColors
()
->
at
(
i
*
4
)
);
col
->
push_back
(
m_vectors
->
getColors
()
->
at
(
i
*
4
+
1
)
);
col
->
push_back
(
m_vectors
->
getColors
()
->
at
(
i
*
4
+
2
)
);
col
->
push_back
(
m_vectors
->
getColors
()
->
at
(
i
*
4
+
3
)
);
if
(
std
::
find
(
fib
->
begin
(),
fib
->
end
(),
pos
)
==
fib
->
end
()
)
{
fib
->
push_back
(
pos
);
col
->
push_back
(
m_vectors
->
getColors
()
->
at
(
i
*
4
)
);
col
->
push_back
(
m_vectors
->
getColors
()
->
at
(
i
*
4
+
1
)
);
col
->
push_back
(
m_vectors
->
getColors
()
->
at
(
i
*
4
+
2
)
);
col
->
push_back
(
m_vectors
->
getColors
()
->
at
(
i
*
4
+
3
)
);
}
}
WDataSetFiberVector
::
SPtr
newDS
(
new
WDataSetFiberVector
()
);
...
...
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