Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Chart for .NET
»
mesh frame does not draw when antialiasing is turned on
mesh frame does not draw when antialiasing is turned on
Post Reply
mesh frame does not draw when antialiasing is turned on
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Karl Baum
Karl Baum
posted 10 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 9,
Visits: 23
Hi,
I came across an issue when turning on anti-aliasing.
_MyChartControl.Settings.ShapeRenderingMode = ShapeRenderingMode.AntiAlias;
I am displaying a colored wireframe surface.
_MySurfaceSeries.FillMode = SurfaceFillMode.None;
_MySurfaceSeries.FrameColorMode = SurfaceFrameColorMode.CustomColors;
_MySurfaceSeries.FrameMode = SurfaceFrameMode.Mesh;
With ShapeRenderingMode set to ShapeRenderingMode.None things work as expected. When set to ShapeRenderingMode.AnitAlias no mesh is drawn. The axes and other components are drawn.
This was confusing and I tracked down a resolution.
I was setting the color of each vertex by using:
uint[] gridColors = _MySurfaceData.Colors;
gridColors[XXX] = YYY;
But if I instead use
_MySurfaceData.SetColor(XXX);
The problem goes away.
Why does the mesh fail to display when turning on anti-aliasing and directly setting the color array value? Is this a bug?
Reply
Like
0
Replies
Nevron Support
Nevron Support
posted 10 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hi Karl,
There was a small problem with the surface data (you need to call a method called OnDataChanged in order to notify the surface that you've accessed the data so that it can rebuild it's internal cache). However that method was marked private and we'll correct that in the next SP of the control. For the time being you need to use SetColor.
Best Regards,
Nevron Support Team
Reply
Like
0
Karl Baum
Karl Baum
posted 10 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 9,
Visits: 23
I saw OnDataChanged was being called in the Grid Surface example in the help, but was unable to call it.
Thanks for looking into the issue.
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
mesh frame does not draw when antialiasing is turned on
Karl Baum
-
10 Years Ago
Hi Karl, There was a small problem with the surface data (you need...
Nevron Support
-
10 Years Ago
I saw OnDataChanged was being called in the Grid Surface example in...
Karl Baum
-
10 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