Exactly, I generated it using GridOut. I see the problem now. I replaced 
all duplicate vertices in the vtk file, now it works as it should. Thanks 
for the clarification!

Best,
Samuel

On Wednesday, July 26, 2017 at 8:38:39 PM UTC+2, Wolfgang Bangerth wrote:
>
> On 07/26/2017 09:18 AM, [email protected] <javascript:> wrote: 
> > 
> > I am trying to read in a triangulation from a vtk file (generated by the 
> > dealii library). It works, but it seems like no information about 
> neighboring 
> > cells is generated: iterating through the cells and calling 
> > cell->neighbor_index(face) always gives -1, indicating that the face is 
> at the 
> > boundary (which it is certainly not in all cases). Do I need to generate 
> this 
> > manually? Or adjust the vtk file? Or is the vtk format no suited for 
> this? 
>
> It is, in general. I think the question is what's in the VTK file. How did 
> you 
> generate it? 
>
> (If you generated it by writing it from deal.II's DataOut class, then the 
> resulting mesh will have the property you note because we duplicate each 
> vertex of the mesh as many times as there are adjacent cells.) 
>
> Best 
>   W. 
>
>
> -- 
> ------------------------------------------------------------------------ 
> Wolfgang Bangerth          email:                 [email protected] 
> <javascript:> 
>                             www: http://www.math.colostate.edu/~bangerth/ 
>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to