Page 1 of 1

Spectrum 3D don't show unfilled data

Posted: Mon Oct 19, 2015 7:19 pm
by blakeadkins
On the Spectrum 3D example in the Demo application, I'm trying to duplicate some of this behavior. I'm wondering if there is a way to not show/render an area that hasn't been filled yet. So the area marked by red in the image below would not render.
spectrum3D.png
spectrum3D.png (229.43 KiB) Viewed 6119 times
I tried changing the range of z, but that didn't seem to work.

Re: Spectrum 3D don't show unfilled data

Posted: Tue Oct 20, 2015 3:13 pm
by ArctionPasi
The easiest way to handle this is to set
m_surface.InitialValue = -10; //below Y axis minimum

and set 3D clipping:

m_chart.View3D.ClipContents = true;

Then it won't show the surface at -10 level.

To improve performance, disable ClipContents when a full range of data has been collected.