Commit 359cf623 authored by Pierre Kraemer's avatar Pierre Kraemer

Merge cgogn:~thery/CGoGN

parents 6d4091ee eb8c79c3
...@@ -1262,9 +1262,9 @@ void MarchingCube<DataType, Windowing, PFP>::recalPoints(const Geom::Vec3f& orig ...@@ -1262,9 +1262,9 @@ void MarchingCube<DataType, Windowing, PFP>::recalPoints(const Geom::Vec3f& orig
{ {
typename PFP::VEC3& P = m_positions[i]; typename PFP::VEC3& P = m_positions[i];
P -= m_fOrigin; P -= m_fOrigin;
P[0] = P[0] * m_fScal[0]; P[0] = (P[0]-0.5f) * m_fScal[0];
P[1] = P[1] * m_fScal[1]; P[1] = (P[1]-0.5f) * m_fScal[1];
P[2] = P[2] * m_fScal[2]; P[2] = (P[2]-0.5f) * m_fScal[2];
P+=origin; P+=origin;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment