Nevron Forum

hitTest to pick a point from NTriangulatedSurfaceSeries surfaces

https://www.nevron.com/Forum/Topic3980.aspx

By Yong Fang 1 - Monday, August 16, 2010

Hi,

I try to display the surface coordinate under the mouse during the mouse move. My chart contains two NTriangulatedSurfaceSeries surfaces. Each of them is a hemisphere. After calling hitTest, I get a NSurfaceTriangle object from the hitTestResult. The NSurfaceTriangle object has three data index. I believe they are the index pointing to the NTriangulatedSurfaceSeries->(X)(Z)Values array. However the index and the coordinate extract from the array are everything but correct.

For instance with a PredefinedProjection:rthogonalTop, only the north hemisphere is visible. When the mouse moves around the north pole, I get random height values (from -1 to +1, both my two hemispheres have 1 as their radius). The height value should be round 1. The series index should always be 0 (meaning the north hemisphere). But sometimes, I got 1 as the series index (meaning the south hemisphere).

Is it a bug with hitTest? Can anyone tell me how to make it works?

Thank you.

Yong Fang
By Nevron Support - Tuesday, August 17, 2010

Hello Yong,

It looks like there is a problem with selection in triangulated surface. I wasn't able to reproduce exactly the behavior that you described, but the control didn't report properly the selected triangles. We will fix the problem for the next service pack.
By Yong Fang 1 - Tuesday, August 17, 2010

Thank you.