eltopo3d/dynamicsurface.cpp
// ---------------------------------------------------------
///
/// Compute the AABB of a continuous vertex
///
// ---------------------------------------------------------
Compute the AABB of a continuous vertex
Compute the AABB of a continuous vertex
void DynamicSurface::vertex_continuous_bounds(size_t v, Vec3d &xmin, Vec3d &xmax) const
{
    if ( m_mesh.m_vertex_to_triangle_map[v].empty() )
    {
        xmin = Vec3d(m_aabb_padding);
        xmax = -Vec3d(m_aabb_padding);
    }
    else
    {
        minmax( get_position(v), get_newposition(v), xmin, xmax);
        xmin -= Vec3d(m_aabb_padding);
        xmax += Vec3d(m_aabb_padding);
    }
}
void DynamicSurface :: vertex_continuous_bounds ( size_t v , Vec3d & xmin , Vec3d & xmax ) const { if ( m_mesh . m_vertex_to_triangle_map [ v ] . empty ( ) ) { xmin = Vec3d ( m_aabb_padding ) ; xmax = - Vec3d ( m_aabb_padding ) ; } else { minmax ( get_position ( v ) , get_newposition ( v ) , xmin , xmax ) ; xmin -= Vec3d ( m_aabb_padding ) ; xmax += Vec3d ( m_aabb_padding ) ; } }
Compute the AABB of a continuous vertex
Compute the AABB of a continuous vertex