Ejemplo n.º 1
0
FEELPP_NO_EXPORT
bool
r1_inter_r2( const node_type& min1, const node_type& max1,
             const node_type& min2, const node_type& max2 )
{
    for ( size_type i=0; i < min1.size(); ++i )
    {
        if ( max1[i] < min2[i] || min1[i] > max2[i] )
            return false;
    }

    return true;
}
Ejemplo n.º 2
0
FEELPP_NO_EXPORT
bool
r1_ge_r2( const node_type& min1, const node_type& max1,
          const node_type& min2, const node_type& max2 )
{
    for ( size_type i=0; i < min1.size(); ++i )
    {
        if ( !( min1[i] <= min2[i] && max1[i] >= max2[i] ) )
            return false;
    }

    return true;
}
Ejemplo n.º 3
0
Geo0D<Dim, T>::Geo0D( size_type id, node_type const& __p, bool boundary, bool is_vertex )
    :
    super( id, MESH_ENTITY_INTERNAL ),
    super2( __p ),
    M_master_id( id ),
    M_is_vertex( is_vertex ),
    M_is_parametric( false ),
    M_mesh( nullptr ),
    M_gdim( 0 ),
    M_gtag( 0 ),
    M_uv( 2 )
{
    FEELPP_ASSERT( __p.size() == Dim )( __p )( Dim ).error( "invalid node" );

    this->setOnBoundary( boundary );
}