Commit 0063a752 authored by Julian Marcon's avatar Julian Marcon

Tidy

parent da26fed8
......@@ -110,24 +110,19 @@ void Generator2D::Process()
Array<OneD, NekDouble> loc;
NekDouble t;
if (m_blends[i] == 2)
if (m_blends[i] == 0 || m_blends[i] == 2)
{
loc = vertices[0]->GetLoc();
t = m_thickness.Evaluate(m_thickness_ID, loc[0], loc[1],
loc[2], 0.0);
m_curvemeshes[i]->SetOffset(0, t);
loc = vertices[1]->GetLoc();
t = m_thickness.Evaluate(m_thickness_ID, loc[0], loc[1],
loc[2], 0.0);
m_curvemeshes[i]->SetOffset(1, t);
}
else
if (m_blends[i] == 1 || m_blends[i] == 2)
{
loc = vertices[m_blends[i]]->GetLoc();
loc = vertices[1]->GetLoc();
t = m_thickness.Evaluate(m_thickness_ID, loc[0], loc[1],
loc[2], 0.0);
m_curvemeshes[i]->SetOffset(m_blends[i], t);
m_curvemeshes[i]->SetOffset(1, t);
}
}
}
......
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