Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Chart for .NET
»
3D Surface Inaccurate Display
3D Surface Inaccurate Display
Post Reply
3D Surface Inaccurate Display
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 trying to display a 3D object with NTriangulatedSurfaceSeries but unfortunately I does no really get the object that I would like. I double checked the coordinates that I input and they seems to be right.
I would like to make a bend with a V shape in it, please find attached example.png. It is made with paint so do not except a lot
I have attached how it looks just now as well, mesh.png
This is code how I create the coordinate:
for (int i = 90; i < 180; i++)
{
for (int j = 0; j < 5; j++)
{
//x
surface.XValues.Add(Math.Cos(i * Math.PI / 180) * 90 + 100 + Math.Abs(j-2) * 10);
//y
surface.Values.Add(Math.Sin(i * Math.PI / 180) * 90);
//z
surface.ZValues.Add(Math.Sin(180 / 4 * j * Math.PI / 180) * 4);
surface.Colors.Add(Color.Green);
Console.WriteLine(j + ", " + Math.Sin(i * Math.PI / 180) * 90 + ", " + (Math.Cos(i * Math.PI / 180) * 90 + 100 + Math.Abs(-2 + j)*10));
}
}
Here is the output of the bottom line:
z y x
0, 1.57071657935551, 30.0137074359248
1, 1.57071657935551, 20.0137074359248
2, 1.57071657935551, 10.0137074359248
3, 1.57071657935551, 20.0137074359248
4, 1.57071657935551, 30.0137074359248
The coordinates seems to be OK, any idea why it does not display the way I think it should?
Thank you,
Daniel
Attachments
example.png
(
958 views,
4.00 KB
)
surface.png
(
1K views,
98.00 KB
)
Tags
3D
3D Surface
Surface
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
3D Surface Inaccurate Display
Daniel Csimszi
-
11 Years Ago
Hi Joel, From the "example.png" image it is a bit hard to understand...
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