← Back to team overview

dolfin team mailing list archive

Re: TetrahedronCell::intersects

 

On Fri, Apr 24, 2009 at 12:51:04PM +0200, Johan Hake wrote:
> On Friday 24 April 2009 12:17:09 Mehdi Nikbakht wrote:
> > Hello,
> >
> > Is there any plane to implement this member function?
> >
> > bool TetrahedronCell::intersects(const MeshEntity& entity, const Cell&
> > cell) const
> >
> > I need it to determine neighboring cells related to a cell.
> 
> If you already have a cell, let say number 0 you can just ask the mesh for its 
> connections, using the topology object that follows each mesh.
> 
>   cell_connections = mesh.topology()(3,3)
>   cell_neighbours  = cell_connections(0)
> 
> Johan

And before then, you need to call

  mesh.init(3, 3);

This computes the cell-cell connectivity which is not there by
default.

-- 
Anders

Attachment: signature.asc
Description: Digital signature


References