Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenMesh
OpenMesh
Commits
752c8ef7
Commit
752c8ef7
authored
Apr 09, 2019
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed loop subdivider with external vector type
parent
1b46bb0e
Pipeline
#9621
canceled with stage
in 20 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/OpenMesh/Tools/Subdivider/Uniform/LoopT.hh
src/OpenMesh/Tools/Subdivider/Uniform/LoopT.hh
+2
-2
No files found.
src/OpenMesh/Tools/Subdivider/Uniform/LoopT.hh
View file @
752c8ef7
...
...
@@ -321,7 +321,7 @@ private: // topological modifiers
typename
mesh_t
::
VertexHandle
vh1
(
_m
.
to_vertex_handle
(
heh
));
typename
mesh_t
::
Point
midP
(
_m
.
point
(
_m
.
to_vertex_handle
(
heh
)));
midP
+=
_m
.
point
(
_m
.
to_vertex_handle
(
opp_heh
));
midP
*=
static_cast
<
typename
mesh_t
::
Point
::
value_type
>
(
0.5
)
;
midP
*=
0.5
;
// new vertex
vh
=
_m
.
new_vertex
(
midP
);
...
...
@@ -393,7 +393,7 @@ private: // geometry helper
// boundary edge: just average vertex positions
if
(
_m
.
is_boundary
(
_eh
)
)
{
pos
*=
static_cast
<
typename
MeshType
::
Point
::
value_type
>
(
0.5
)
;
pos
*=
0.5
;
}
else
// inner edge: add neighbouring Vertices to sum
{
...
...
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