public static void DrawTestCube( Vector3 center, TransformPointDlg transform ) { var count = 15; var dist = 0.1f; for( int x = 0; x < count; ++x ) for( int y = 0; y < count; ++y ) for( int z = 0; z < count; ++z ) { if( x == 0 || x == count - 1 || y == 0 || y == count - 1|| z == 0 || z == count - 1 ) { var pos = new Vector3( dist * (x - count / 2), dist * (y - count / 2), dist * (z - count / 2) ); pos = transform( pos ); Debug.DrawLine( center + pos * 0.9f, center + pos, Color.red ); } } }