Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenMesh
OpenMesh
Commits
2eebdd62
Commit
2eebdd62
authored
Nov 27, 2019
by
Max Lyon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reduce scope of variable
parent
f1e0588b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/OpenMesh/Tools/Decimater/ModAspectRatioT_impl.hh
src/OpenMesh/Tools/Decimater/ModAspectRatioT_impl.hh
+3
-3
No files found.
src/OpenMesh/Tools/Decimater/ModAspectRatioT_impl.hh
View file @
2eebdd62
...
...
@@ -133,16 +133,16 @@ template<class MeshT>
float
ModAspectRatioT
<
MeshT
>::
collapse_priority
(
const
CollapseInfo
&
_ci
)
{
typename
Mesh
::
VertexHandle
v2
,
v3
;
typename
Mesh
::
FaceHandle
fh
;
const
typename
Mesh
::
Point
*
p1
(
&
_ci
.
p1
)
,
*
p2
,
*
p3
;
const
typename
Mesh
::
Point
*
p1
(
&
_ci
.
p1
);
typename
Mesh
::
Scalar
r0
,
r1
,
r0_min
(
1.0
),
r1_min
(
1.0
);
typename
Mesh
::
ConstVertexOHalfedgeIter
voh_it
(
mesh_
,
_ci
.
v0
);
v3
=
mesh_
.
to_vertex_handle
(
*
voh_it
);
p3
=
&
mesh_
.
point
(
v3
);
auto
p3
=
&
mesh_
.
point
(
v3
);
while
(
voh_it
.
is_valid
())
{
v2
=
v3
;
p2
=
p3
;
auto
p2
=
p3
;
++
voh_it
;
v3
=
mesh_
.
to_vertex_handle
(
*
voh_it
);
...
...
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