Profile Picture

mesh frame does not draw when antialiasing is turned on

Posted By Karl Baum 9 Years Ago
Author
Message
Karl Baum
Problem Posted 9 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 9 Years Ago
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?





Similar Topics


Reading This Topic