eltopo3d/dynamicsurface.cpp
// ---------------------------------------------------------
///
/// Compute the AABB of an edge
///
// ---------------------------------------------------------
Compute the AABB of an edge
Compute the AABB of an edge
void DynamicSurface::edge_static_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_position(edge[1]), xmin, xmax);
        xmin -= Vec3d(m_aabb_padding);
        xmax += Vec3d(m_aabb_padding);
    }
}
void DynamicSurface :: edge_static_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_position ( edge [ 1 ] ) , xmin , xmax ) ; xmin -= Vec3d ( m_aabb_padding ) ; xmax += Vec3d ( m_aabb_padding ) ; } }
Compute the AABB of an edge
Compute the AABB of an edge