Page 1 of 1

Draw3D Property

Posted: Thu Oct 28, 2010 7:29 pm
by 16054484
I was wondering what the Draw3D property actaully does.

I am trying to add 3D plotting into our graphing application.
In doing this, I have noticed that when I plot a Steema.TeeChart.Styles.Points3D series with Pointer.Visible = TRUE if I rotate the 3D graph, the points drawn on the graph appear to lack any sort of depth.
From the front, the Hollow Circles appear fine but as I rotate the graph around so that I am looking perpendicular to the Depth axis, the actual shape of the pointer cannot be seen and individual data points really appear as small vertical lines.

I tried setting the Draw3D property to true since I thought perhaps this would fix the issue.
I was expecting the Hollow Circle to be visible as a Hollow Circle from any viewing angle as the user rotates the graph.
And this is not the case.

Is there some property that I am missing that would allow the points to draw in a more truly 3D manner?

Thanks.
Aaron Peronto
Siemens Energy Inc.

Re: Draw3D Property

Posted: Tue Nov 02, 2010 11:04 am
by 10050769
Hello Aaron_Peronto,

I think that you can change visibility of pen true to false or use Style of pointer PolishedSphere. Please, see next example:

Code: Select all

   private void InitializeChart()
        {
            Steema.TeeChart.Styles.Points3D series1 = new Steema.TeeChart.Styles.Points3D(tChart1.Chart);
            series1.FillSampleValues();
            series1.Pointer.Visible = true;
            series1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle;//PointerStyles.PolishedSphere
            series1.Pointer.Pen.Visible = false;
            series1.LinePen.Visible = false;
            series1.SetNull(2);
            series1.SetNull(5);   
        }
Could you tell us if previous code works as you want?

I hope will helps.

Thanks,

Re: Draw3D Property

Posted: Thu Nov 04, 2010 3:05 pm
by 16054484
Sandra,
Thank you for the reply.

I tried the code you listed in my application and did not see any change.
I wanted to remove any issues that my own application might be causing from the equation, so I started a sandbox app with just a Windows Form containing the tchart1 control. I copied and pasted your code in and also added a Rotate tool so that I could swing the graph around and view it from the side.
When I rotate to look at the graph from the side, there is no depth to the points. They pretty much disappear when you attempt to view them form the side or from above.

Not sure if there is anything else I can try to get actual 3D points drawn. The points being drawn are simply 2 dimensional and that becomes obvious when you rotate the graph.

Thanks again for your quick reply, let me know if you have any other suggestions.

Aaron Peronto

Re: Draw3D Property

Posted: Thu Nov 04, 2010 3:14 pm
by narcis
Hi Aaron,

You need to use DepthSize property, for example:

Code: Select all

            tChart1.Aspect.Chart3DPercent = 100;
            tChart1.Legend.Visible = false;

            Steema.TeeChart.Styles.Points3D points3D1 = new Steema.TeeChart.Styles.Points3D(tChart1.Chart);
            points3D1.FillSampleValues();
            points3D1.DepthSize = points3D1.Pointer.VertSize / 2;