Commit 66a2f45a authored by Sylvain Thery's avatar Sylvain Thery
Browse files

in the right direction

parent 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]-0.5f) * m_fScal[0]; P[0] = (P[0]+0.5f) * m_fScal[0];
P[1] = (P[1]-0.5f) * m_fScal[1]; P[1] = (P[1]+0.5f) * m_fScal[1];
P[2] = (P[2]-0.5f) * 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