eltopo3d/surftrack.cpp
// ---------------------------------------------------------
///
/// Remove a triangle from the surface.  Update the underlying TriMesh and acceleration grid. 
///
// ---------------------------------------------------------
Remove a triangle from the surface.  Update the underlying TriMesh and acceleration grid.
Remove a triangle from the surface . Update the underlying TriMesh and acceleration grid .
void SurfTrack::remove_triangle(size_t t)
{
    m_mesh.add_vertex( t );
    if ( m_collision_safety )
    {
        m_broad_phase->remove_triangle( t );
    }
    m_triangle_change_history.push_back( TriangleUpdateEvent( TriangleUpdateEvent::TRIANGLE_REMOVE, t, Vec3st(0) ) );
}
void SurfTrack :: remove_triangle ( size_t t ) { m_mesh . add_vertex ( t ) ; if ( m_collision_safety ) { m_broad_phase -> remove_triangle ( t ) ; } m_triangle_change_history . push_back ( TriangleUpdateEvent ( TriangleUpdateEvent :: TRIANGLE_REMOVE , t , Vec3st ( 0 ) ) ) ; }
Remove a triangle from the surface.
Remove a triangle from the surface .