Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Cazier
CGoGN
Commits
f9dee600
Commit
f9dee600
authored
Jul 13, 2011
by
Pierre Kraemer
Browse files
aesthetic commit
parent
0e2304fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/Algo/Filtering/functors.h
View file @
f9dee600
...
...
@@ -73,7 +73,10 @@ protected:
public:
FunctorAverageOnSphereBorder
(
typename
PFP
::
MAP
&
map
,
const
AttributeHandler
<
T
>&
a
,
const
AttributeHandler
<
VEC3
>&
p
)
:
FunctorMap
<
typename
PFP
::
MAP
>
(
map
),
attr
(
a
),
position
(
p
),
sum
(
0
),
count
(
0
)
{
center
=
VEC3
(
0
);
radius
=
0
;}
{
center
=
VEC3
(
0
);
radius
=
0
;
}
bool
operator
()(
Dart
d
)
{
typename
PFP
::
REAL
alpha
=
0
;
...
...
include/Algo/Filtering/taubin.h
View file @
f9dee600
...
...
@@ -106,10 +106,8 @@ void filterTaubin_modified(typename PFP::MAP& map, typename PFP::TVEC3& position
mv
.
mark
(
d
);
c1
.
collectBorder
(
d
)
;
VEC3
center
=
position
[
d
]
;
fa1
.
reset
(
center
,
radius
)
;
fa1
.
reset
(
center
,
radius
)
;
c1
.
applyOnBorder
(
fa1
)
;
VEC3
displ
=
fa1
.
getAverage
()
-
center
;
displ
*=
lambda
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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