Vertical stripe for some Sample Distance values

Dear colleagues,

I am facing a problem when changing the sample distance value.

For certain values of sample distance, defined with SetSampleDistance (), a vertical stripe that crosses the entire object appears when I rotate 90º (as the image I show down here).

The voxel size is 0.085x0.085x1mm3 ( I don’t know if it has any effect on that).

Example:

SetSampleDistance (0.5) does not appear
SetSampleDistance (0.16) does not appear
SetSampleDistance (0.15) appears
SetSampleDistance (0.14) appears
SetSampleDistance (0.11) does not appear
SetSampleDistance (0.05) appears

Perhaps it is a very basic question, but I do not understand why it happens.
Can anyone help me?

Thank you in advance!
image

Do you have this problem with classvtkFixedPointVolumeRayCastMapper?

Yes, with SetBlendModeToComposite().
Why?

We have found this bug 10+ years ago at my previous company. Shortly after I left I heard from my colleagues that they fixed it, but apparently they did not have the time to contribute it back to VTK. Later the problem was also reported by Randall Hand and he also attached a patch to fix it.

Since the GPU volume mapper is several magnitudes faster and has several important features that the CPU mapper does not have (jittering, semi-functional multi-volume rendering, masking, etc.), the class does not get too much developer or user attention. However, if the proposed patch fixes the issue then it is definitely worth merging it.

Oh…really?

OK, so, I am a bit inexperienced in software/instalation issues, how can I “embed” this patch in my code?

Thank you very much!!

You need to download VTK source code, make the changes described in the patch, and build VTK.

OK, thank you so so much!! Hope it works!!