<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div style="font-family: Verdana;font-size: 12.0px;">
<div>
<style type="text/css"><!--p, li {
}

--></style>
<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">Hello;</p>

<p>&nbsp;</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">i&acute;m writing a paraview reader for my specific geo-file, combined with a specific solution-file.the files don&acute;t have any vtk format, only a list of floats.</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">First I created a vtkHexahedron out of vtkpoints and than i commited the cells to an vtkunstructeredgrid. this is only a geo-file.</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">the points i read in and then i set them with InsertPoint(nodeId, x_coord, y_coord, z_coord) and the hexahedron i created so:</p>

<p>&nbsp;</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">vtkSmartPointer&lt;vtkHexahedron&gt; hex = vtkHexahedron::New();</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">hex-&gt;GetPointIds()-&gt;SetId(0,vl[0]);</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">hex-&gt;GetPointIds()-&gt;SetId(1,vl[1]);</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">...</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">next i commited the cells to the unstructeredgrid with</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">unstructeredgirdP-&gt;InsertNextCell(hex-&gt;GetCellType(), hex-&gt;GetPointIds());</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">the elements(cells) are unordered.for example elem1 then elem20...</p>

<p>&nbsp;</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">Later i read in the solution the nodes (points) in and buffered in the float array with</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">floatarrayP-&gt;InsertTuple(nodeId, uuTmp);</p>

<p>&nbsp;</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">Then i combined geo file and solution file of the nodes in the unstrutered grid.</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">unstructeredgridP-&gt;GetPointData()-&gt;AddArray(uu);</p>

<p>&nbsp;</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">Allright.</p>

<p>&nbsp;</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">I want to do the same with the cells, i have to combine the cells which i created with the solution of the cell.</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">Therefore i want to create a new float arrays with the solution.</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">floatarrayP-&gt;InsertTuple(elemId, uuTmp);</p>

<p>&nbsp;</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">now my problem:</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">for the points i set the id consciously in the unstructeredegrid. the cells8hexahedron i set by and by.</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">but i need the exact id of element for InsertTuple(elemId, uuTmp).</p>

<p>&nbsp;</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">is there a possibility to set the id for cells by while read in the geometry or can i get the possibly existing id?</p>

<p>&nbsp;</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">Thanks</p>

<p>&nbsp;</p>

<p>&nbsp;</p>
</div>
</div></div></body></html>