Profile Picture

Tooltip with value for NTriangulatedSurfaceBase

Posted By Lars Moastuen 12 Years Ago
Author
Message
Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
The hit test result can give you the indices of the points of the selected triangle.

NHitTestResult result = nChartControl1.HitTest(e.X, e.Y);
NSurfaceTriangle tr = result.Object as NSurfaceTriangle;

You can pick the closest point from one of the three points that are indicated by tr.DataPointIndex1, tr.DataPointIndex2 and tr.DataPointIndex3. If you prefer you can use the points to calculate the exact coordinates of the 3D point under the mouse. We can also send you an example project that demonstrates this - please write to our support email if you need it.




Best Regards,
Nevron Support Team



Lars Moastuen
questionmark Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 1, Visits: 1
I'm able to show tooltips with value (using new NInteractivityStyle("")), but this does not work for NTriangulatedSurfaceBase. Retrieving the X and Z is easy using NChartControl.HitTest(x, y), but this doesn't really help me in this case. The only workaround I've found is to manually search through all data points to figure out what point is closest to a given position and retrieve this value. Is there really not any better way to do this?



Similar Topics


Reading This Topic