void cCaveTunnel::Smooth(void) { cCaveDefPoints Pts; for (;;) { if (!RefineDefPoints(m_Points, Pts)) { std::swap(Pts, m_Points); return; } if (!RefineDefPoints(Pts, m_Points)) { return; } } }
void cStructGenRavines::cRavine::Smooth(void) { cRavDefPoints Pts; RefineDefPoints(m_Points, Pts); // Refine m_Points -> Pts RefineDefPoints(Pts, m_Points); // Refine Pts -> m_Points }