Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 QCChart3D 3D Charting Tools for .Net (VB and C#)
 Differences between C++ library and C# library
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gcestier

2 Posts

Posted - 07 Mar 2011 :  04:30:34  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07