Where did ViewMatrix3D go?

V5 broke the 3D transform mechanism in ChartSeriesRenderer.

In GetPointByVlauesForSeries() I used to have:

if( ChartArea.RealSeries3D && ChartArea.Series3D )
{

Vector3D v = new Vector3D( pt.X, pt.Y + lc.X + Math.Abs( lc.Y/2 ), 0 );
v = ChartArea.ViewMatrix3D*v;
pt = Graphics3D.ToPointF(v, ChartArea.Size, ChartArea.Settings3D.Perspective );
pt = new PointF( pt.X + ChartArea.Left, pt.Y + ChartArea.Top );
}

The ChartArea.ViewMatrix3D has apparently been replaced by: ChartArea.Transform3D.

But how do I construct my point now?

Can anyone help transform my old 4x code to 5x code?

(PS.. I really wish when Syncfusion got rid of a method signature, it would use the [Obsolete(msg, true)] flag and provide a message pointing to the new mechanism from the old.)


1 Reply

SA Saravanan A Syncfusion Team October 24, 2007 11:43 AM UTC

Hi ERobishaw,

In from the Transform3D.View method, you can get the ViewMatrix3D object. Please try using the following code and let us know if it helps you to

//v = ChartArea.ViewMatrix3D*v;
v = ChartArea.Transform3D.View*v;

Regards,
Saravanan

Loader.
Up arrow icon