<div dir="ltr">Hi Pavol,<div><br></div><div>This is not answering your question directly, but in VTK, there is a vtkGAMBITReader, which outputs a <span style="font-size:12.8px">vtkUnstructuredGrid. Is that reader not able to read your .neu file? If not, at least you can check out how it is constructing </span><span style="font-size:12.8px">vtkUnstructuredGrid as output.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Also, based on your description of what you want to do, you may want to checkout our </span><font color="#000000"><span style="font-family:'Open Sans',Arial,sans-serif;line-height:23.8px"> </span><span style="font-family:'Open Sans',Arial,sans-serif;line-height:23.8px"><a href="http://www.computationalmodelbuilder.org/" target="_blank">Computational Model Builder (CMB) framework</a>, especially the <a href="http://www.computationalmodelbuilder.org/modelbuilder/" target="_blank">ModelBuilder application suite</a>. The CMB suite is for managing the full life cycle of a simulation and</span><span style="font-family:'Open Sans',Arial,sans-serif;line-height:23.8px"> the core resources required to define the simulation</span><span style="font-family:'Open Sans',Arial,sans-serif;line-height:23.8px">. The applications are</span><span style="font-family:'Open Sans',Arial,sans-serif;line-height:23.8px"> developed on top of paraview, and the install package also includes a fairly-up-to-date paraview. Also like Paraview, all these tools are open source.</span></font></div><div><br></div><div>If you have any questions on these tools, you can use these <a href="http://www.computationalmodelbuilder.org/mailinglist/">mailing lists</a></div><div><br></div><div>Best,</div><div>Yumin</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 2, 2016 at 12:04 PM, Pavol <span dir="ltr"><<a href="mailto:pavol.palicka@tuke.sk" target="_blank">pavol.palicka@tuke.sk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I'm trying to read .neu file into vtkUnstcturedGrid.<br>
I have created vtkUnstructuredGrid object using<br>
*vtkSmartPointer<vtkUnstructuredGrid> unstructuredGrid =<br>
vtkSmartPointer<vtkUnstructuredGrid>::New();*<br>
Every point coords are inserted into vtkPoints object which is at the end<br>
ofreading set for unstructured gria via method SetPoints. Before reading and<br>
setting up cells for unstructuredGrid I am calling<br>
*unstructuredGrid->Allocate(nCells);* (nCells represent total amount of<br>
cells) in a while cycle I am reading ids of eah point which forms cell<br>
(cells for the object are of same type) into idList and then using<br>
*unstructuredGrid->InsertNextCell(VTK_HEXAHEDRON,idList);* I am inserting<br>
cells into unstructuredGrid object.<br>
Till this point everithing for me seems to be right and program seems to<br>
work properly but visualizing this object I get this:<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/n5735732/01.png" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5735732/01.png</a>><br>
output from paraview displaying points and object surface with edges:<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/n5735732/02.png" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5735732/02.png</a>><br>
something is wrong there... object suppost to be regular cube formed by<br>
cells of the smae type. So for me it seems like problem comes with cells...<br>
<br>
I am trying to read .neu file for points and cells and .msh file for the<br>
faces.<br>
I want to :<br>
- use Gambit to create computing mesh for the object (furnace to be<br>
spefific),<br>
- read it into vtkUnstructuredGrid,<br>
- set up initial and boundary conditions (especialy for this purpose i want<br>
to read faces),<br>
- using method of elementary balances compute material properies in time<br>
during thermal processing,<br>
- use vtkCellData (add multiple arrays) as data storage for computing,<br>
- visuslize proces using paraview and vtk.<br>
<br>
So...<br>
If anyone can help me with this, I will be really thankfull.<br>
<br>
Have a great day<br>
Best regards<br>
Pavol<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/reading-neu-file-into-vtkUnstructuredGrid-object-tp5735732.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/reading-neu-file-into-vtkUnstructuredGrid-object-tp5735732.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>