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
OpenMesh
OpenMesh
Commits
79ce71f2
Commit
79ce71f2
authored
Nov 07, 2016
by
Jan Möbius
Browse files
Another fix
parent
aec2fa24
Pipeline
#3526
canceled with stage
in 2 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Tools/Subdivider/Uniform/Sqrt3InterpolatingSubdividerLabsikGreinerT.hh
View file @
79ce71f2
...
...
@@ -158,11 +158,13 @@ public:
for
(
unsigned
int
K
=
5
;
K
<
_max_valence
;
++
K
)
{
weights_
[
K
].
resize
(
K
+
1
);
real_t
aH
=
2.0
*
cos
(
M_PI
/
K
)
/
3.0
;
weights_
[
K
][
K
]
=
1.0
-
aH
*
aH
;
double
aH
=
2.0
*
cos
(
M_PI
/
static_cast
<
double
>
(
K
)
)
/
3.0
;
weights_
[
K
][
K
]
=
static_cast
<
real_t
>
(
1.0
-
aH
*
aH
)
;
for
(
unsigned
int
i
=
0
;
i
<
K
;
++
i
)
{
weights_
[
K
][
i
]
=
(
aH
*
aH
+
2.0
*
aH
*
cos
(
2.0
*
i
*
M_PI
/
K
+
M_PI
/
K
)
+
2.0
*
aH
*
aH
*
cos
(
4.0
*
i
*
M_PI
/
K
+
2.0
*
M_PI
/
K
))
/
K
;
weights_
[
K
][
i
]
=
static_cast
<
real_t
>
((
aH
*
aH
+
2.0
*
aH
*
cos
(
2.0
*
static_cast
<
double
>
(
i
)
*
M_PI
/
static_cast
<
double
>
(
K
)
+
M_PI
/
static_cast
<
double
>
(
K
))
+
2.0
*
aH
*
aH
*
cos
(
4.0
*
static_cast
<
double
>
(
i
)
*
M_PI
/
static_cast
<
double
>
(
K
)
+
2.0
*
M_PI
/
static_cast
<
double
>
(
K
)))
/
static_cast
<
double
>
(
K
));
}
}
...
...
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