<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thanks for your reply.<br>
<br>
Unfortunately i cannot share the dataset. However, the input data only relates to the output data in a way that it provides an upper bound for the output bounds. The actual dimensions and bounds are input by the user and are then processed to extent and spacing
 which are used for the output properties.<br>
<br>
I am constructing the grid in the following way: <br>
<br>
    this->seedGrid =    vtkSmartPointer<vtkImageData>::New();<br>
<br>
    int extentSeedGrid[6];<br>
    extentSeedGrid[0] = 0;<br>
    extentSeedGrid[1] = static_cast<int>(this->dimensionSeedGrid[0])-1;<br>
    extentSeedGrid[2] = 0;<br>
    extentSeedGrid[3] = static_cast<int>(this->dimensionSeedGrid[1])-1;<br>
    extentSeedGrid[4] = 0;<br>
    extentSeedGrid[5] = static_cast<int>(this->dimensionSeedGrid[2])-1;<br>
<br>
    ///Set Size and extent of the seedng grid<br>
    seedGrid->SetExtent(extentSeedGrid);<br>
    seedGrid->SetOrigin(this->originSeedGrid);<br>
    ///Calculate and set spacing of the seeding grid<br>
<br>
<br>
    this->spacingSeedGrid[0] = this->boundsSeedGrid[0]/static_cast<double>(extentSeedGrid[1]);<br>
    this->spacingSeedGrid[1] = this->boundsSeedGrid[1]/static_cast<double>(extentSeedGrid[3]);<br>
    this->spacingSeedGrid[2] = this->boundsSeedGrid[2]/static_cast<double>(extentSeedGrid[5]);<br>
    this->seedGrid->SetSpacing(this->spacingSeedGrid);<br>
<br>
<br>
<br>
#if VTK_MAJOR_VERSION <= 5<br>
<br>
    this->seedGrid->SetNumberOfScalarComponents(1);<br>
    this->seedGrid->SetScalarTypeToDouble();<br>
    this->seedGrid->AllocateScalars();<br>
<br>
#else<br>
    this->seedGrid->AllocateScalars(VTK_DOUBLE,1);<br>
#endif<br>
<br>
<br>
Where dimensionsSeedGrid and boundsSeedGrid are input by the user. <br>
Paraview does show the correct bounds and dimensions within the  information tab.
<br>
<br>
I hope this provides useful information to find the solution of my problem<br>
<br>
<br>
Best regards <br>
<br>
Philipp Jung<br>
<br>
<br>
<div class="moz-cite-prefix">On 25.04.2017 16:22, Utkarsh Ayachit wrote:<br>
</div>
<blockquote cite="mid:CADHSJjCMv6XnTEi_YQgDpALqi4qPEykobpHkNvnKBn-R6M=X7w@mail.gmail.com" type="cite">
<div dir="ltr">If you can share the dataset, it may be easier to point out what could be going wrong.
<div><br>
</div>
<div>Thanks</div>
<div>Utkarsh</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Apr 25, 2017 at 4:47 AM, philipp jung <span dir="ltr">
<<a moz-do-not-send="true" href="mailto:philippjung2010@live.de" target="_blank">philippjung2010@live.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Dear all,</p>
<p>Within one of my custom filters i am trying to return an uniform grid, i.e. vtkImageData.</p>
<p>When using the filter within paraview the bounds, extent and spacing are detected correctly, meaning they are the same as the input, as intended. However, the outline representation greatly differs from the outline of the input data. I have included pictures
 of the surface and point representation of the output. Notice that the "volume" is open on the one side. The outline image shows the outline of the original image, which would be the correct size, while the actual outline is larger than intended. I appreciate
 any indication what might be causing this behavior. <br>
</p>
<p>Best regards</p>
<p>Philipp Jung<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><img src="cid:part2.ADD96D4C.ECBA6183@live.de" alt=""><img src="cid:part3.5E9C7764.F8D25B20@live.de" alt=""><img src="cid:part4.6587D9B7.212D99A3@live.de" alt=""></p>
</div>
<br>
______________________________<wbr>_________________<br>
Powered by <a moz-do-not-send="true" href="http://www.kitware.com" rel="noreferrer" target="_blank">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a moz-do-not-send="true" href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">
http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a moz-do-not-send="true" href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">
http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a moz-do-not-send="true" href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true" href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>