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
David Cazier
CGoGN
Commits
099d7609
Commit
099d7609
authored
Jul 21, 2015
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only check resolution level if different from current one
parent
061cc307
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
CGoGN/include/Utils/sphericalHarmonics.hpp
CGoGN/include/Utils/sphericalHarmonics.hpp
+8
-5
No files found.
CGoGN/include/Utils/sphericalHarmonics.hpp
View file @
099d7609
...
...
@@ -53,11 +53,14 @@ SphericalHarmonics<Tscalar,Tcoef>::~SphericalHarmonics()
template
<
typename
Tscalar
,
typename
Tcoef
>
void
SphericalHarmonics
<
Tscalar
,
Tcoef
>::
set_level
(
int
res_level
)
{
assert
(
res_level
>=
0
&&
res_level
<
max_resolution
);
assert
(
cpt_instances
==
0
);
resolution
=
res_level
;
nb_coefs
=
(
resolution
+
1
)
*
(
resolution
+
1
);
init_K_tab
();
if
(
res_level
!=
resolution
)
{
assert
(
res_level
>=
0
&&
res_level
<
max_resolution
);
assert
(
cpt_instances
==
0
);
resolution
=
res_level
;
nb_coefs
=
(
resolution
+
1
)
*
(
resolution
+
1
);
init_K_tab
();
}
}
template
<
typename
Tscalar
,
typename
Tcoef
>
...
...
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