Commit d6cd2a79 authored by hrchilds's avatar hrchilds
Browse files

Automatically do kernel resampling for ray-casting volume plots of point

meshes.


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@9635 18c085ea-50e0-402c-830e-de6fd14e8384
parent 74c9c97c
......@@ -375,6 +375,9 @@ avtRayTracer::GetNumberOfDivisions(int screenX, int screenY, int screenZ)
// Hank Childs, Tue Jan 13 14:26:44 PST 2009
// Fix oversight where parallel volume rendering was not being jittered.
//
// Hank Childs, Sun Jan 24 15:35:50 PST 2010
// Automatically use the kernel based resampling for point data.
//
// ****************************************************************************
void
......@@ -416,7 +419,11 @@ avtRayTracer::Execute(void)
// Extract all of the samples from the dataset.
//
avtSamplePointExtractor extractor(screen[0], screen[1], samplesPerRay);
extractor.SetKernelBasedSampling(kernelBasedSampling);
bool doKernel = kernelBasedSampling;
if (trans.GetOutput()->GetInfo().GetAttributes().GetTopologicalDimension()
== 0)
doKernel = true;
extractor.SetKernelBasedSampling(doKernel);
extractor.RegisterRayFunction(rayfoo);
extractor.SetJittering(true);
extractor.SetInput(trans.GetOutput());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment