[Paraview] Problem with Custom ParaView Reader
Kalin Kanov
kalin at cs.jhu.edu
Wed Feb 12 13:47:51 EST 2014
Hi Andy,
Thanks for the quick response. I am setting the extent to be
[0,16,0,16,0,16], as follows:
in the constructor:
this->extent[0] = 0;
this->extent[1] = 16;
this->extent[2] = 0;
this->extent[3] = 16;
this->extent[4] = 0;
this->extent[5] = 16;
in RequestInformation():
outInfo->Set(
vtkStreamingDemandDrivenPipeline::
WHOLE_EXTENT(),
this->extent, 6);
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.
On 12.2.2014 г. 13:30, Andy Bauer wrote:
> Hi Kalin,
>
> I'm thinking that maybe there is ghost level information that is wrong,
> or maybe extent information. I'm assuming that you're running the server
> in serial so in that case you shouldn't have any ghost levels. If your
> grid has 16 points in each direction than than the extent for that
> should be [i, i+15, j, j+15, k, k+15] for a single process (note that
> extents don't need to start from 0 but usually do). If your grid is 16
> cells in each direction than the extent would be [i, i+16, j, j+16, k,
> k+16].
>
> If that isn't the problem, dan you share your code and your vti file
> from your test harness?
>
> Regards,
> Andy
>
>
> On Wed, Feb 12, 2014 at 1:11 PM, Kalin Kanov <kalin at cs.jhu.edu
> <mailto:kalin at cs.jhu.edu>> wrote:
>
> Dear All,
>
> I am developing a custom ParaView reader for my data. I have a
> working plugin for ParaView that reads and displays the data.
> However, what I am getting in the 3D view is not as expected. My
> reader subclasses vtkImageAlgorithm and produces a 3D structured
> grid. When I load the data in ParaView I only see 3 of the surfaces
> of the cube (attached is a screenshot). Any idea why this would be
> happening?
>
> When I view the data in spreadsheet form all 4096 point (the testing
> cube is 16x16x16) have associated scalar data and the coordinates
> look good, but the 3D view displays only the left, right and bottom
> walls of the cube. Additionally, I also have a small test harness
> that uses my custom reader as input for a vtkXMLImageDataWriter and
> the resulting .vti file when loaded into ParaView and visualized
> looks good.
>
> Thank you,
> Kalin Kanov
>
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vtkJHTDBReaderTest.cxx
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140212/71b2fa9f/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140212/71b2fa9f/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.vti
Type: text/xml
Size: 19984 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140212/71b2fa9f/attachment-0002.xml>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vtkJHTDBReader.cxx
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140212/71b2fa9f/attachment-0003.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkJHTDBReader.h
Type: text/x-chdr
Size: 970 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140212/71b2fa9f/attachment-0001.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkJHTDBReader.xml
Type: text/xml
Size: 795 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140212/71b2fa9f/attachment-0003.xml>
More information about the ParaView
mailing list