Profile Picture

Float values XZ axis

Posted By anre dsa 13 Years Ago
Author
Message
anre dsa
Posted 13 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: 13 Years Ago
Posts: 1, Visits: 1
Hi, it is possible to use float values on XZ axis?

Im setting data in surface.Data.SetValue(int x, int z, float y) but I need to use float values on x,z axis as well.

Or there is any workaround? Like making my axis with *10^-3 scale?


Thanks!

Nicholas Passy
Posted 13 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: 13 Years Ago
Posts: 1, Visits: 1
I'm having the same problem.

I have a set of points that discribe a surface (such as the ones included below) and can't find a way to plot them.
I can't use the SetValue() method, as it only takes ints for its X and Z axis parameters. Do I actually need to use an interpolation method to have the exact points in order to use this library?

-0.008599761 -0.002794232 0.069455404
-0.008969363 -0.000942718 0.069274481
-0.008945541 0.000940214 0.069090487
-0.008532411 0.002772348 0.068911458
-0.007750796 0.004474924 0.068745088
-0.006636844 0.005975841 0.068598423
-0.005240119 0.007212405 0.068477591
-0.0036213 0.008133573 0.068387577
-0.001849598 0.008701676 0.068332064
0.005682823 0.02673558 0.121213387
0.011132893 0.025004886 0.121383623


I also tried creating a (number_of_lines, 3) matrix, using the (In, 0, Xn),(In, 1, Yn),(In, 2, Zn) format, but that didn't work too...

Nevron Support
Posted 13 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
With the grid surface you can assign only the Y (elevation) value of a data point. The indexX and indexZ parameters are simply indices in a 2D array.

The following code:

gridSurface.Data.SetValue(indexX, indexZ, valueY);

is the same as:

gridSurface.Data[indexX, indexZ] = valueY;


If you need to set three values (X, Y, Z) per data point, you should use the NMeshSurfaceSeries:

meshSurface.Data.SetValue(indexX, indexZ, valueY, valueX, valueZ);

The NTriangulatedSurfaceSeries also displays three values per data point, but there the points are not ordered in a grid-like structure.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic