Profile Picture

NTriangulatedSurfaceSeries dos not displays with data point increase

Posted By Daniel Csimszi 10 Years Ago

NTriangulatedSurfaceSeries dos not displays with data point increase

Author
Message
Daniel Csimszi
Question Posted 10 Years Ago
View Quick Profile
Forum Guru

Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)Forum Guru (50 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 61, Visits: 35
Hi,

I am playing with he surface graph. I'm trying to display an arch just now with this code:


int maxj = 10;
for (int i = 0; i <= 180; i++)
      {
       for (int j = 0; j < maxj; j++)
       {
          //x
          surface.XValues.Add(j);
          //y
          surface.Values.Add(Math.Round(Math.Sin(i * Math.PI / 180) * 100, 2));
          //z
          surface.ZValues.Add(Math.Round(Math.Cos(i * Math.PI / 180) * 100 + 100, 2));
          surface.Colors.Add(returnColor(0, 20, 10));
       }
      }


My problem is that if the maxj is 10 then I cannot see the graph, if I decrease it to 3 then it is displayed.

It is not the number of points as if display the same or even more points without drawing the arc, using Sin/Cos then it works.

Any idea?

Thanks,
Daniel

Tags



Similar Topics


Reading This Topic