eltopo3d/dynamicsurface.cpp
// ---------------------------------------------------------
///
/// Compute the AABB of a continuous edge
///
// ---------------------------------------------------------
Compute the AABB of a continuous edge
Compute the AABB of a continuous edge
void DynamicSurface::edge_continuous_bounds(size_t e, Vec3d &xmin, Vec3d &xmax) const
{
    const Vec2st& edge = m_mesh.m_edges[e];   
    if ( edge[0] == edge[1] )
    {
        xmin = Vec3d(m_aabb_padding);
        xmax = -Vec3d(m_aabb_padding);
    }
    else
    {      
        minmax(get_position(edge[0]), get_newposition(edge[0]), 
               get_position(edge[1]), get_newposition(edge[1]), 
               xmin, xmax);
        xmin -= Vec3d(m_aabb_padding);
        xmax += Vec3d(m_aabb_padding);
    }
}
void DynamicSurface :: edge_continuous_bounds ( size_t e , Vec3d & xmin , Vec3d & xmax ) const { const Vec2st & edge = m_mesh . m_edges [ e ] ; if ( edge [ 0 ] == edge [ 1 ] ) { xmin = Vec3d ( m_aabb_padding ) ; xmax = - Vec3d ( m_aabb_padding ) ; } else { minmax ( get_position ( edge [ 0 ] ) , get_newposition ( edge [ 0 ] ) , get_position ( edge [ 1 ] ) , get_newposition ( edge [ 1 ] ) , xmin , xmax ) ; xmin -= Vec3d ( m_aabb_padding ) ; xmax += Vec3d ( m_aabb_padding ) ; } }
Compute the AABB of a continuous edge
Compute the AABB of a continuous edge