Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Chart for .NET
»
NTriangulatedSurfaceSeries dos not displays with data point increase
NTriangulatedSurfaceSeries dos not displays with data point increase
Post Reply
NTriangulatedSurfaceSeries dos not displays with data point increase
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Daniel Csimszi
Daniel Csimszi
posted 11 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 61,
Visits: 35
Hi,
I am playing with he surface graph. I'm trying to display an arch just now with this code:
int maxj = 10;
for (int i = 0; i <= 180; i++)
{
for (int j = 0; j < maxj; j++)
{
//x
surface.XValues.Add(j);
//y
surface.Values.Add(Math.Round(Math.Sin(i * Math.PI / 180) * 100, 2));
//z
surface.ZValues.Add(Math.Round(Math.Cos(i * Math.PI / 180) * 100 + 100, 2));
surface.Colors.Add(returnColor(0, 20, 10));
}
}
My problem is that if the maxj is 10 then I cannot see the graph, if I decrease it to 3 then it is displayed.
It is not the number of points as if display the same or even more points without drawing the arc, using Sin/Cos then it works.
Any idea?
Thanks,
Daniel
Tags
3D Surface
Reply
Like
0
Replies
Nevron Support
Nevron Support
posted 11 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hello Daniel,
In general, triangulation algorithms implemented with double precision arithmetic are not stable with certain kinds of input, especially ordered sets of points like the ones that you are displaying. In other words, sometimes the surface series simply fails to triangulate the points that you specify. You can configure the chart to use geometric calculations with adaptive precision - this will make the triangulation somewhat slower, but more robust. To enable this feature, you have to set the UsePreciseGeometry property to true.
By the way, the occurrence of this problem is often a sign that the triangulated surface might not be appropriate. You can display the same surface with the Mesh Surface series - no issues with the precision and it renders much faster.
Best Regards,
Nevron Support Team
Reply
Like
0
Daniel Csimszi
Daniel Csimszi
posted 11 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 61,
Visits: 35
Thank you, I need to color each point the way I want to so I think I just going to stay with the triangulated surface.
I am just wondering can nevron display a torus? or at least the top half of it?
Reply
Like
0
Daniel Csimszi
Daniel Csimszi
posted 11 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 61,
Visits: 35
No worries.
It can display torus.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
NTriangulatedSurfaceSeries dos not displays with data point increase
Daniel Csimszi
-
11 Years Ago
Some update: I tried a few different things. I am drawing 2 half...
Daniel Csimszi
-
11 Years Ago
Hello Daniel, In general, triangulation algorithms implemented with...
Nevron Support
-
11 Years Ago
Thank you, I need to color each point the way I want to so I think I...
Daniel Csimszi
-
11 Years Ago
No worries. It can display torus.
Daniel Csimszi
-
11 Years Ago
Shapes like torus or the top half of a torus can only be displayed...
Nevron Support
-
11 Years Ago
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search