[Paraview] [ParaView] How to add slice thickness ?
Cory Quammen
cory.quammen at kitware.com
Tue Jun 14 17:55:16 EDT 2016
I suspect you are running out of memory with the Transform Filter.
Another approach would be to use a Programmable Filter and just change
the spacing information of the image data. Try this Python in the
Script property of the Programmable Filter:
input = self.GetInput()
output = self.GetOutput()
output.ShallowCopy(input)
output.SetSpacing(xSpacing, ySpacing, zSpacing)
That should do the trick.
HTH,
Cory
On Tue, Jun 14, 2016 at 7:34 PM, Chathu Gunasekera <cgunases at gmail.com> wrote:
> Thank you so much for your response Cory.
> Well, you're correct, i am referring to the spacing.
> When i use the Transform Filter (units in mm) and apply it to the model, the
> Paraview crashes (Paraview stops working and close the program by itself).
> Do you know what could be the error?
> What am i doing wrong here? I am clueless..
> Your suggestions are welcome.
> Thank you .
>
>
>
> --
> Warm regards,
> Chathuri Gunasekera.
>
>
> On Tue, Jun 14, 2016 at 9:12 PM, Cory Quammen <cory.quammen at kitware.com>
> wrote:
>>
>> Chathuri,
>>
>> I'm not really sure what you mean by adding slice thickness. Slices
>> are always infinitesimally thin planes in ParaView.
>>
>> Do you mean setting the spacing between image slices? If so, you
>> should be able to do that with the Transform filter, which lets you
>> specify a different scale in X, Y, and Z. I am assuming your slices
>> are read in with spacing of 1 x 1 x 1 (no units specified). You should
>> be able to scale to whatever units you wish to use with your knowledge
>> of both the X and Y spacing in each slice and the Z spacing between
>> slices.
>>
>> HTH,
>> Cory
>>
>> On Sat, May 14, 2016 at 11:54 AM, Chathuri Gunasekera
>> <cgunases at gmail.com> wrote:
>> > Hi,
>> >
>> > I have lot of image slices which need to employ in generating a 3D
>> > model.
>> >
>> > Can someone kindly tell me, how to add the slice thickness in ParaView?
>> >
>> > Thanks in advance.
>> > --
>> > Warm regards,
>> > Chathuri Gunasekera.
>> >
>> > _______________________________________________
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Please keep messages on-topic and check the ParaView Wiki at:
>> > http://paraview.org/Wiki/ParaView
>> >
>> > Search the list archives at: http://markmail.org/search/?q=ParaView
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://public.kitware.com/mailman/listinfo/paraview
>> >
>>
>>
>>
>> --
>> Cory Quammen
>> R&D Engineer
>> Kitware, Inc.
>
>
>
>
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
More information about the ParaView
mailing list