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
CGoGN
CGoGN
Commits
66a2f45a
Commit
66a2f45a
authored
Mar 26, 2012
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in the right direction
parent
eb8c79c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/Algo/MC/marchingcube.hpp
include/Algo/MC/marchingcube.hpp
+3
-3
No files found.
include/Algo/MC/marchingcube.hpp
View file @
66a2f45a
...
...
@@ -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
]
-
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
[
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
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