<div dir="ltr"><div>Neks,</div><div><br></div>I am trying to import some mesh information into prenek via a vtk file. <div>Can someone please post an example of one that works into the git repo? Ideally it would be nice to have a 2d and 3d case for vtk files that work in prenek. </div><div><br></div><div>I have tried using the vtkUnstructuredGridWriter class from the vtk library and prenek does not accept the file. At first I thought it was because the class required 3d points and I am importing a 2d mesh, but after I modified the file to remove the extra coordinate and make it match the style guide (<a href="http://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf">http://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf</a>) prenek reads the mesh without crashing, but no elements appear. The output to the terminal from prenek is:</div><div><br></div><div><div>IMPORT VTK MESH </div><div>Current number of elements: 0</div><div>input name of vtk file</div><div> 4 0 1 2 3 </div><div> inside gencen 0 F 4</div><div> done gencen 0</div></div><div><br></div><div><br></div><div>The contents of the file I am trying to import are below, so if you see a bug please let me know.</div><div><br></div><div><div><div># vtk DataFile Version 4.0</div><div>vtk output</div><div>ASCII</div><div>DATASET UNSTRUCTURED_GRID</div><div>POINTS 7 float</div><div>0 0 </div><div>2.1 0 </div><div>1.48492 1.48492 </div><div>0 2.1 </div><div>3 0 </div><div>2.12132 2.12132 </div><div>0 3 </div><div>CELLS 3 15</div><div>4 0 1 2 3 </div><div>4 1 4 5 2 </div><div>4 3 2 5 6 </div><div><br></div><div>CELL_TYPES 3</div><div>9</div><div>9</div><div>9</div></div><div><br></div><div>Thanks,</div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Phil S.</div></div></div></div>
</div></div>