<div dir="ltr"><div><div>Hi Kalin,<br><br>I think the issue is that your extents are wrong. The extents should be the index of the first and last point in each logical direction so it should be [0, 15, 0, 15, 0, 15] if you have a square grid with 4096 points. Note that this is the whole extent that the reader could provide even though subsequent filters may ask for a reduced extent. Also, in RequestData() you should get the requested extent with something like the following and take out the SetDimension() call:<br>
<br>š vtkInformation *outInfo = outputVector->GetInformationObject(outputPort);<br>š int subext[6];<br>š outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(),subext);<br></div><div>š image->SetExtent(subext);<br>
</div><div><br></div>Then use the subextent to fill in your scalars array since it may be less than what it could potentially provide (e.g. why read in all data when you only need a subset of that).<br><br></div>I've filled in the vtkJHTDBReader.cxx code with some comments and changes. You should go through and review what I did since I can't test your code.<br>
<br>Regards,<br>Andy<br><div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 12, 2014 at 1:47 PM, Kalin Kanov <span dir="ltr"><<a href="mailto:kalin@cs.jhu.edu" target="_blank">kalin@cs.jhu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andy,<br>
<br>
Thanks for the quick response. I am setting the extent to be [0,16,0,16,0,16], as follows:<br>
<br>
in the constructor:<br>
š š š š this->extent[0] = 0;<br>
š š š š this->extent[1] = 16;<br>
š š š š this->extent[2] = 0;<br>
š š š š this->extent[3] = 16;<br>
š š š š this->extent[4] = 0;<br>
š š š š this->extent[5] = 16;<br>
<br>
in RequestInformation():<br>
š š š š outInfo->Set(<br>
š š š š š š š š vtkStreamingDemandDrivenPipeli<u></u>ne::<br>
š š š š š š š š WHOLE_EXTENT(),<br>
š š š š š š š š this->extent, 6);<br>
<br>
Attached is the .vti file and the code. In the test harness I also have a vtkRenderer, which also displays the data as a 3d cube.<div class=""><br>
<br>
<br>
<br>
On 12.2.2014 Ç. 13:30, Andy Bauer wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
Hi Kalin,<br>
<br>
I'm thinking that maybe there is ghost level information that is wrong,<br>
or maybe extent information. I'm assuming that you're running the server<br>
in serial so in that case you shouldn't have any ghost levels. If your<br>
grid has 16 points in each direction than than the extent for that<br>
should be [i, i+15, j, j+15, k, k+15] for a single process (note that<br>
extents don't need to start from 0 but usually do). If your grid is 16<br>
cells in each direction than the extent would be [i, i+16, j, j+16, k,<br>
k+16].<br>
<br>
If that isn't the problem, dan you share your code and your vti file<br>
from your test harness?<br>
<br>
Regards,<br>
Andy<br>
<br>
<br>
On Wed, Feb 12, 2014 at 1:11 PM, Kalin Kanov <<a href="mailto:kalin@cs.jhu.edu" target="_blank">kalin@cs.jhu.edu</a><br></div><div class="">
<mailto:<a href="mailto:kalin@cs.jhu.edu" target="_blank">kalin@cs.jhu.edu</a>>> wrote:<br>
<br>
š š Dear All,<br>
<br>
š š I am developing a custom ParaView reader for my data. I have a<br>
š š working plugin for ParaView that reads and displays the data.<br>
š š However, what I am getting in the 3D view is not as expected. My<br>
š š reader subclasses vtkImageAlgorithm and produces a 3D structured<br>
š š grid. When I load the data in ParaView I only see 3 of the surfaces<br>
š š of the cube (attached is a screenshot). Any idea why this would be<br>
š š happening?<br>
<br>
š š When I view the data in spreadsheet form all 4096 point (the testing<br>
š š cube is 16x16x16) have associated scalar data and the coordinates<br>
š š look good, but the 3D view displays only the left, right and bottom<br>
š š walls of the cube. Additionally, I also have a small test harness<br>
š š that uses my custom reader as input for a vtkXMLImageDataWriter and<br>
š š the resulting .vti file when loaded into ParaView and visualized<br>
š š looks good.<br>
<br>
š š Thank you,<br>
š š Kalin Kanov<br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br></div>