<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> </p>
<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">i´m writing a paraview reader for my specific geo-file, combined with a specific solution-file.the files don´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> </p>
<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">vtkSmartPointer<vtkHexahedron> hex = vtkHexahedron::New();</p>
<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">hex->GetPointIds()->SetId(0,vl[0]);</p>
<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">hex->GetPointIds()->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->InsertNextCell(hex->GetCellType(), hex->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> </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->InsertTuple(nodeId, uuTmp);</p>
<p> </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->GetPointData()->AddArray(uu);</p>
<p> </p>
<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">Allright.</p>
<p> </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->InsertTuple(elemId, uuTmp);</p>
<p> </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> </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> </p>
<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;">Thanks</p>
<p> </p>
<p> </p>
</div>
</div></div></body></html>