Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olena
pylene
Commits
d05ec59f
Commit
d05ec59f
authored
Jun 24, 2021
by
Victor Simonin
Browse files
Remove useless comments and clean offset computation
parent
a9c060a7
Pipeline
#28761
passed with stage
in 23 minutes and 42 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
pylene/src/morpho/component_tree.cpp
View file @
d05ec59f
...
...
@@ -35,11 +35,10 @@ namespace mln::morpho
{
if
(
dom
.
has
(
q
))
{
mln
::
morpho
::
edge_t
<
int
,
double
>
edge
=
{
p
[
0
]
+
width
*
p
[
1
],
q
[
0
]
+
width
*
q
[
1
],
0
};
auto
offset_p
=
p
[
0
]
+
width
*
p
[
1
];
auto
offset_q
=
q
[
0
]
+
width
*
q
[
1
];
// std::cout << p[0] + width * p[1] << ' ' << node_map.index_of_point(p) << '\n';
// std::cout << q[0] + width * q[1] << ' ' << node_map.index_of_point(q) << '\n';
// std::cout << "\n\n";
mln
::
morpho
::
edge_t
<
int
,
double
>
edge
=
{
offset_p
,
offset_q
,
0
};
edge
.
w
=
std
::
abs
(
node_map
(
p
)
-
node_map
(
q
));
...
...
@@ -104,4 +103,4 @@ namespace mln::morpho
return
res
;
}
}
}
// namespace mln::morpho
Write
Preview
Supports
Markdown
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