57 for ( i = 0; i < *nx; i++ )
59 for ( j = 0; j < *ny; j++ )
61 a[i][j] = z[i + j * *lx];
65 c_plot3dc( x, y, (
const PLFLT *
const *) a, *nx, *ny, *opt, clevel, *nlevel );
76 PLOT3DC__( x, y, z, nx, ny, opt, clevel, nlevel, lx );
92 if ( !( temp = (
PLFLT **) malloc( (
size_t) *nx *
sizeof (
PLFLT * ) ) ) )
94 plabort(
"PLSURF3D: Out of memory" );
98 for ( i = 0; i < *nx; i++ )
100 if ( !( temp[i] = (
PLFLT *) malloc( (
size_t) *ny *
sizeof (
PLFLT ) ) ) )
104 for ( ii = 0; ii < i - 1; ii++ )
105 free( (
void *) temp[i] );
106 free( (
void *) temp );
107 plabort(
"PLSURF3D: Out of memory" );
112 for ( i = 0; i < *nx; i++ )
113 for ( j = 0; j < *ny; j++ )
114 temp[i][j] = *( z + j * *lx + i );
116 c_plsurf3d( x, y, (
const PLFLT *
const *) temp, *nx, *ny, *opt, clevel, *nlevel );
118 for ( i = 0; i < *nx; i++ )
119 free( (
void *) temp[i] );
121 free( (
void *) temp );
138 if ( !( temp = (
PLFLT **) malloc( (
size_t) *nx *
sizeof (
PLFLT * ) ) ) )
140 plabort(
"PLSURF3D: Out of memory" );
144 for ( i = 0; i < *nx; i++ )
146 if ( !( temp[i] = (
PLFLT *) malloc( (
size_t) *ny *
sizeof (
PLFLT ) ) ) )
150 for ( ii = 0; ii < i - 1; ii++ )
151 free( (
void *) temp[i] );
152 free( (
void *) temp );
153 plabort(
"PLSURF3D: Out of memory" );
158 for ( i = 0; i < *nx; i++ )
159 for ( j = 0; j < *ny; j++ )
160 temp[i][j] = *( z + j * *lx + i );
162 c_plsurf3dl( x, y, (
const PLFLT *
const *) temp, *nx, *ny, *opt, clevel, *nlevel,
163 *indexxmin, *indexxmax, indexymin, indexymax );
165 for ( i = 0; i < *nx; i++ )
166 free( (
void *) temp[i] );
168 free( (
void *) temp );
175 PLINT optlocal, nlevel = 0;
178 optlocal = *opt |
MESH;
179 PLOT3DC__( x, y, z, nx, ny, &optlocal, &clevel, &nlevel, lx );
188 optlocal = *opt |
MESH;
189 PLOT3DC__( x, y, z, nx, ny, &optlocal, clevel, nlevel, lx );
197 PLINT optlocal, nlevel = 0;
200 optlocal = *opt | ( *side != 0 ?
DRAW_SIDES : 0 );
201 PLOT3DC__( x, y, z, nx, ny, &optlocal, &clevel, &nlevel, lx );