eltopo3d/dynamicsurface.cpp
// ---------------------------------------------------------
///
/// Compute the (padded) AABB of a vertex
///
// ---------------------------------------------------------
Compute the (padded) AABB of a vertex
Compute the ( padded ) AABB of a vertex
void DynamicSurface::vertex_static_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
    {
        xmin = get_position(v) - Vec3d(m_aabb_padding);
        xmax = get_position(v) + Vec3d(m_aabb_padding);
    }
}
void DynamicSurface :: vertex_static_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 { xmin = get_position ( v ) - Vec3d ( m_aabb_padding ) ; xmax = get_position ( v ) + Vec3d ( m_aabb_padding ) ; } }
Compute the (padded) AABB of a vertex
Compute the ( padded ) AABB of a vertex