Author |
Topic |
|
gcestier
2 Posts |
Posted - 07 Mar 2011 : 04:30:34
|
Hi,
I'm having trouble to customize the shape of my contour plot. I would like to show zones in the form of squares like i was doing with the C++ library (picture below).
But with the C# library, with the code below, the polygones of my contour are triangles,but i prefer squares or rectangles. Is it possible to customize the shape of my contour's polygones with the C# library?
_thePlot.InitContourPlot( _dataset, Carto3D._ContourLevel, _attributes, _lineFlags.ToArray(), _labelFlags.ToArray(), Carto3D._ContourLevel.Length - 1, ChartObj.CONTOUR_LINEANDFILL); _thePlot.SetUpdateFlag(true); _thePlot.SetContourPlotAttributes(Carto3D._ContourLevel, attributes, Carto3D._ContourLevel.Length - 1, 1); _thePlot.SetPolygonGridOn(true); _thePlot.SetContourLineAlgorithm(ChartObj.CONTOUR_LINEWALK);
My graph in C#:
Thanks a lot
|
Edited by - gcestier on 07 Mar 2011 04:42:18 |
|
quinncurtis
1586 Posts |
Posted - 07 Mar 2011 : 09:42:10
|
Sorry, but the QCChart3D software does not have option you describe.
Exactly which software package did you use to create your picture. Was it our 3D++ software, or the even older Science, Engineering and Graphics Tools?
Rectangles are not optimal for contour interpolation, because unlike a triangle, a rectangle does not define a plane. There is often ambiguity on how a contour passes through a rectangle because it does not have to be planar. Also, a rectangle can only be used with surfaces defined by an evenly spaced grid, while triangles can be used on the more common case where the contour surface is not defined by an evenly spaced grid. There is never an ambiguity with a triangle. So our current software uses triangles for contour interpolation. Even when you define your data using an evenly spaced grid, as in your example, the software still defines the surface using triangles. There is no way to change it to use rectangles.
|
|
|
|
Topic |
|
|
|