# Showing an sphere on a 3D surface graph between steps

### Welcome to the SciChart Forums!

• Some reputation is required to post answers. Get up-voted to avoid the spam filter!
• We welcome community answers and upvotes. Every Q&A improves SciChart for everyone
1
0

We would like to add an sphere on a 3D surface graph between steps. We are using a SurfaceMeshRenderableSeries3D and we have the X and Y indices of the point. Is there a way to do this out of the box?

Or is there a way to get the interpolated point using the data series and the indices?

If that is not possible, is there an algorithm we could get from you to do the calculation ourselves?

Currently we are using a XyzDataSeries3D and adding the point to that, but our interpolation algorithm must not be the same as yours, as the point does not stay on the surface of the graph in between points.

Version
7.0.2.27161
• Hi Doug, can you explain a little more? You want to display a sphere centred on the cell (the quadrilateral or square) on a SurfaceMeshRenderableSeries3D? Or do you want to display it at the corners (we call the vertices). Do you want a single sphere or many? Is the size fixed or constant or must it be the same size as the cell? Why do you want to do it (pls share screenshots if possible) – Andrew
• You must to post comments
1
0

We have a three dimensional lookup table with two index arrays and an output array. The index arrays are monotonically increasing. We are displaying this data in a 3D chart using the SurfaceMeshRenderableSeries3D. We want to show what we call the “operating point” that is being used from the output array based on a index value in each of the index arrays. Because these index values can be a value between the points of the index arrays, we have to perform interpolations to find the actual operating point from the output array. Once we interpolate the operating point, we want to display it on the surface mesh.

Right now we are using a XyzDataSeries3D to display this point (See image 3D1.png. The point is yellow). What we are finding is our point doesn’t always stay on the surface mesh when it gets between points that are not equal. In image 3D2.png you can see that the point is below the surface mesh. In image 3D3.png, you can’t see the point, as it is below the surface mesh.

We think what is happening is that our interpolation algorithm is different than what you use to draw the SurfaceMeshRenderableSeries3D. We were wondering if there was a way to give the SurfaceMeshRenderableSeries3D the two index points for the index arrays and get back the point’s x, y and z coordinates.

I apologize for the confusion. Thank you for your help.

Images
• Hi Doug, I’ll have a think about this. As far as I know its just linear interpolation in 3-dimensions between the four corners of each ‘cell’. Each corner is a vertex and you can work out the XYZ locations of these from the surface mesh. If you’re mid-way between the mesh then it’ll be linear interpolation in 3d between the four corners. Before we go away and try to recreate your scenario, can you share us some code that you’ve done so far? That will help us a lot as we can make suggestions / amendments vs. spending all the time just recreating the same thing.
• You must to post comments
0
0

Hi Andrew, thank you for looking at this. I have attached a small example with the interpolation code we use in it. In the example I have included an interface for the lookup table, along with input parameters into the table. Hopefully this helps. Let me know if you need anything else.

Attachments
• You must to post comments
Showing 2 results