Matrix3DFromString Method |
Namespace: VIZCore3D.NET.Data
public static Matrix3D FromString( string matrix, string separator = "," )
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; public void Example() { List<Data.Node> node = vizcore3d.Object3D.FromFilter(Data.Object3dFilter.SELECTED_TOP); if (node.Count == 0) return; // 1,0,0,0,0,1,0,0,0,0,1,0,-88370,-350,1023,1 string matrixString = "1,0,0,0,0,1,0,0,0,0,1,0,-88370,-350,1023,1"; VIZCore3D.NET.Data.Matrix3D matrix = VIZCore3D.NET.Data.Matrix3D.FromString(matrixString, ","); // If necessary // matrix.Flip(); vizcore3d.Object3D.Transform.Transform(node, matrix, true); }