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 - IsoSurface not rendering with constant Y values
Summary: IsoSurface not rendering with constant Y values
Status: CONFIRMED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-29 07:24 EDT by narcís calvet
Modified: 2016-03-29 07:24 EDT (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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;