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
Sauvage
CGoGN
Commits
eb8c79c3
Commit
eb8c79c3
authored
Mar 26, 2012
by
Sylvain Thery
Browse files
shift bug in MC
parent
fbf4fa5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/Algo/MC/marchingcube.hpp
View file @
eb8c79c3
...
...
@@ -1262,9 +1262,9 @@ void MarchingCube<DataType, Windowing, PFP>::recalPoints(const Geom::Vec3f& orig
{
typename
PFP
::
VEC3
&
P
=
m_positions
[
i
];
P
-=
m_fOrigin
;
P
[
0
]
=
P
[
0
]
*
m_fScal
[
0
];
P
[
1
]
=
P
[
1
]
*
m_fScal
[
1
];
P
[
2
]
=
P
[
2
]
*
m_fScal
[
2
];
P
[
0
]
=
(
P
[
0
]
-
0.5
f
)
*
m_fScal
[
0
];
P
[
1
]
=
(
P
[
1
]
-
0.5
f
)
*
m_fScal
[
1
];
P
[
2
]
=
(
P
[
2
]
-
0.5
f
)
*
m_fScal
[
2
];
P
+=
origin
;
}
}
...
...
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