Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1479

Summary: IsoSurface not rendering with constant Y values
Product: .NET TeeChart Reporter: narcís calvet <narcis>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: normal    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description narcís calvet 2016-03-29 07:24:42 EDT
Code snippet below doesn't display any series:

      Steema.TeeChart.Styles.IsoSurface surface = new Steema.TeeChart.Styles.IsoSurface(tChart1.Chart);

      tChart1.Aspect.View3D = true;
      tChart1.Header.Text = "3D显示";
      tChart1.Aspect.Chart3DPercent = 80;

      int z, p;
      Random y = new Random();

      for (int i = 0; i <= 200; i++)
      {
        for (int j = 0; j <= 300; j++)
        {
          z = i * 10;
          if (z > 255)
          {
            z = z % 255;
          }

          p = j * 10;
          if (p > 255)
          {
            p = p % 255;
          }

          //surface.Add(i, y.Next(), j, "X", Color.FromArgb(255, z, p)); //This paints the series
          surface.Add(i, 100, j, "X", Color.FromArgb(255, z, p)); //This doesn't paint anything.
        }
      }

While it works fine in Delphi:

uses TeeSurfa;

procedure TForm1.FormCreate(Sender: TObject);
var surface : TIsoSurfaceSeries;
    i, j, z, p : Integer;
begin
   Chart1.View3D:=true;
   Chart1.Chart3DPercent:=80;
   surface:=TIsoSurfaceSeries(Chart1.AddSeries(TIsoSurfaceSeries));

   For i:=0 to 200 do
   begin
     For j:=0 to 300 do
     begin
       z:=i*10;
       if z > 255 then
        z:=z Mod 255;

       p:=j*10;
       if j > 255 then
        p:=j Mod 255;

       surface.AddXYZ(i, 100, j, 'X', RGB(255, z, p));
     end;
   end;
end;